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

31 lines
508 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// Effect 477: {0}回合内若受到攻击,则对手{1}
type Effect477 struct {
RoundEffectArg0Base
}
func (e *Effect477) Skill_Use_ex() bool {
if e.Ctx().SkillEntity == nil {
return true
}
for i, effectId := range e.SideEffectArgs[1:] {
if effectId == 0 {
continue
}
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(effectId))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 477, &Effect477{})
}