1
This commit is contained in:
parent
583e193fce
commit
c68a672e57
@ -30,7 +30,7 @@ func (this *buff) Add(accountId string, buffList []int32) {
|
|||||||
buffMeta := mt.Table.Buff.GetById(int64(buffId))
|
buffMeta := mt.Table.Buff.GetById(int64(buffId))
|
||||||
if buffMeta != nil {
|
if buffMeta != nil {
|
||||||
buffModel := new(model.Buff)
|
buffModel := new(model.Buff)
|
||||||
isCreate := false
|
isCreate := true
|
||||||
if buffMeta.GetCanStack() == 1 {
|
if buffMeta.GetCanStack() == 1 {
|
||||||
if err, found := buffModel.FindByBuffId(accountId, buffMeta.GetBuffId()); err == nil {
|
if err, found := buffModel.FindByBuffId(accountId, buffMeta.GetBuffId()); err == nil {
|
||||||
isCreate = !found
|
isCreate = !found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user