Files
bl/logic/service/fight/effect/156.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

53 lines
979 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 156: {0}回合内使得对手所有能力增强效果失效
type Effect156 struct {
node.EffectNode
}
func (e *Effect156) Skill_Use() bool {
for i, v := range e.TargetInput().Prop[:] {
if v > 0 {
e.TargetInput().SetProp(e.CarrierInput(), int8(i), 0)
}
}
addSubEffect(e.CarrierInput(), e.TargetInput(), &e.EffectNode, &Effect156_sub{}, e.SideEffectArgs[0])
return true
}
type Effect156_sub struct {
node.EffectNode
duy int
//bindpet *info.BattlePetEntity
//bind *input.Input
// Hide bool // 是否隐藏 正常是命中就可用,镇魂歌是回合数到才可用
}
func (e *Effect156_sub) EFFect_Befer(in *input.Input, effEffect input.Effect) bool {
if in != e.CarrierInput() {
return true
}
if input.IS_Stat(effEffect) {
return false
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 156, &Effect156{})
}