This commit is contained in:
aozhiwei 2024-11-22 17:32:50 +08:00
parent 3f6955087e
commit c748641d1a

View File

@ -62,12 +62,12 @@ func (this *buff) HasBuffEffect(accountId string, buffEffect int32) (error, bool
if err, buffs := this.List(accountId); err == nil {
for _, v := range(buffs) {
buffMeta := mt.Table.Buff.GetById(int64(v.BuffId))
if buffMeta == nil {
if buffMeta != nil && buffMeta.GetBuffEffect() == buffEffect {
return nil, true
}
}
return nil, false
} else {
return nil, true
return err, false
}
}