1
This commit is contained in:
parent
3f6955087e
commit
c748641d1a
@ -62,12 +62,12 @@ func (this *buff) HasBuffEffect(accountId string, buffEffect int32) (error, bool
|
|||||||
if err, buffs := this.List(accountId); err == nil {
|
if err, buffs := this.List(accountId); err == nil {
|
||||||
for _, v := range(buffs) {
|
for _, v := range(buffs) {
|
||||||
buffMeta := mt.Table.Buff.GetById(int64(v.BuffId))
|
buffMeta := mt.Table.Buff.GetById(int64(v.BuffId))
|
||||||
if buffMeta == nil {
|
if buffMeta != nil && buffMeta.GetBuffEffect() == buffEffect {
|
||||||
|
return nil, true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil, false
|
return nil, false
|
||||||
} else {
|
} else {
|
||||||
return nil, true
|
return err, false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user