2026-03-08 15:26:07 +08:00
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
)
|
|
|
|
|
|
2026-03-28 21:57:22 +08:00
|
|
|
// Effect 477: {0}回合内若受到攻击,则对手{1}
|
2026-03-08 15:26:07 +08:00
|
|
|
type Effect477 struct {
|
2026-03-28 21:57:22 +08:00
|
|
|
RoundEffectArg0Base
|
2026-03-08 15:26:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *Effect477) Skill_Use_ex() bool {
|
|
|
|
|
if e.Ctx().SkillEntity == nil {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for i, effectId := range e.SideEffectArgs[1:] {
|
2026-03-17 10:57:11 +08:00
|
|
|
if effectId == 0 {
|
|
|
|
|
continue
|
|
|
|
|
}
|
2026-03-08 23:24:18 +08:00
|
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(effectId))
|
2026-03-08 15:26:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
input.InitEffect(input.EffectType.Skill, 477, &Effect477{})
|
|
|
|
|
|
|
|
|
|
}
|