This commit is contained in:
aozhiwei 2024-11-22 16:41:12 +08:00
parent 583e193fce
commit c68a672e57

View File

@ -30,7 +30,7 @@ func (this *buff) Add(accountId string, buffList []int32) {
buffMeta := mt.Table.Buff.GetById(int64(buffId))
if buffMeta != nil {
buffModel := new(model.Buff)
isCreate := false
isCreate := true
if buffMeta.GetCanStack() == 1 {
if err, found := buffModel.FindByBuffId(accountId, buffMeta.GetBuffId()); err == nil {
isCreate = !found