diff --git a/logic/service/fight/fightc.go b/logic/service/fight/fightc.go index f5748090e..15cbbedbe 100644 --- a/logic/service/fight/fightc.go +++ b/logic/service/fight/fightc.go @@ -565,7 +565,9 @@ func (f *FightC) enterturn(fattack, sattack *action.SelectSkillAction) { t := f.First.GetEffect(input.EffectType.Status, i) if t != nil { //状态都是叠层类的 + ret.FAttack.Status[i] = int8(t.Duration()) + 1 + } t = f.Second.GetEffect(input.EffectType.Status, i) if t != nil { diff --git a/logic/service/fight/input/node.go b/logic/service/fight/input/node.go index f76f3d9c4..9b0089ef5 100644 --- a/logic/service/fight/input/node.go +++ b/logic/service/fight/input/node.go @@ -70,7 +70,7 @@ func (c *Input) GetProp(id int, istue bool) int { func (c *Input) GetEffect(etype EnumEffectType, id int) Effect { var ret []Effect for _, v := range c.Effects { - if v.ID() == id { + if v.ID() == id &&v.Alive(){ ret = append(ret, v) }