30 lines
452 B
Go
30 lines
452 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 521: 反转自身能力下降状态
|
|
type Effect521 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect521) OnSkill() bool {
|
|
|
|
for i, v := range e.Ctx().Our.Prop[:] {
|
|
if v < 0 {
|
|
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), -2*v)
|
|
|
|
return true
|
|
}
|
|
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 521, &Effect521{})
|
|
|
|
}
|