This commit is contained in:
aozhiwei 2024-11-22 17:28:42 +08:00
parent b587ff9842
commit 3f6955087e

View File

@ -57,3 +57,17 @@ func (this *buff) Add(accountId string, buffList []int32) {
}
}
}
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 {
}
}
return nil, false
} else {
return nil, true
}
}