1
This commit is contained in:
parent
b587ff9842
commit
3f6955087e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user