Files
bl/logic/service/fight/effect/effect_448.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

41 lines
748 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// Effect 448: {0}回合内每回合对手{1}
type Effect448 struct {
RoundEffectSideArg0Base
rev bool
}
func (e *Effect448) OnSkill() bool {
for i, v := range e.SideEffectArgs[1:] {
if v == 0 {
continue
}
if e.rev {
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(v))
} else {
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), int8(v))
}
}
return true
}
// -----------------------------------------------------------
// 初始化
// -----------------------------------------------------------
func init() {
input.InitEffect(input.EffectType.Skill, 448, &Effect448{
rev: true,
})
input.InitEffect(input.EffectType.Skill, 433, &Effect448{
rev: false,
})
}