28 lines
556 B
Go
28 lines
556 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 533: 消除双方能力提升、下降状态
|
|
type Effect533 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect533) OnSkill() bool {
|
|
// 消除自己
|
|
for i := 0; i < len(e.Ctx().Our.Prop); i++ {
|
|
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), 0)
|
|
}
|
|
// 消除对手
|
|
for i := 0; i < len(e.Ctx().Opp.Prop); i++ {
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), 0)
|
|
}
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 533, &Effect533{})
|
|
}
|