29 lines
532 B
Go
29 lines
532 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 569: 吞噬对手的能力提升效果并双倍转移到自己身上
|
|
type Effect569 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect569) OnSkill() bool {
|
|
for i, v := range e.Ctx().Opp.Prop[:] {
|
|
if v <= 0 {
|
|
continue
|
|
}
|
|
|
|
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), int8(v*2))
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), 0)
|
|
}
|
|
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 569, &Effect569{})
|
|
}
|