Files
bl/logic/service/fight/effect/190.go
xinian 78a68148ce
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
chore: update fight logic and effect implementations
2026-04-05 02:25:44 +08:00

32 lines
541 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// Effect 190: {0}回合内若受到攻击,消除对手能力提升状态
type Effect190 struct {
RoundEffectArg0Base
}
func (e *Effect190) Skill_Use_ex() bool {
if e.Ctx().SkillEntity == nil {
return true
}
// 消除对手所有能力强化状态
for i, v := range e.TargetInput().Prop[:] {
if v > 0 {
e.TargetInput().SetProp(e.CarrierInput(), int8(i), 0)
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 190, &Effect190{})
}