41 lines
748 B
Go
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,
|
|
})
|
|
}
|