34 lines
574 B
Go
34 lines
574 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
type Effect85 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
// ----------------------
|
|
// 执行时逻辑
|
|
// ----------------------
|
|
func (e *Effect85) OnSkill() bool {
|
|
|
|
for i, v := range e.Ctx().Opp.Prop[:] {
|
|
if v > 0 {
|
|
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), v)
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our,int8(i),0)
|
|
}
|
|
|
|
}
|
|
|
|
return true
|
|
}
|
|
|
|
// ----------------------
|
|
// 注册所有效果
|
|
// ----------------------
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 85, &Effect85{})
|
|
}
|