31 lines
508 B
Go
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{})
|
|
|
|
}
|