42 lines
815 B
Go
42 lines
815 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/battle/node"
|
|
"blazing/logic/service/fight/info"
|
|
)
|
|
|
|
/**
|
|
* 当次攻击击败对方时减少对方下次出战精灵的最大体力1/n
|
|
*/
|
|
type Effect67 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func init() {
|
|
info.NodeM.AddEffect(&Effect67{})
|
|
}
|
|
|
|
// 重写EFFectID
|
|
func (this *Effect67) ID() int {
|
|
this.EffectNode.ParamSize(1) //设置参数个数
|
|
return 67
|
|
}
|
|
|
|
// 重写死亡,如果击败,就出触发死亡事件,判断是目标精灵
|
|
func (this *Effect67) OnDefeat() bool {
|
|
|
|
return true
|
|
}
|
|
|
|
// 登场是下一只 减少对方下次出战精灵的最大体力1/n
|
|
func (this *Effect67) OnSwitchIn() bool {
|
|
|
|
return true
|
|
}
|
|
|
|
// 下场不消除buff
|
|
func (this *Effect67) OnSwitchOut() bool {
|
|
//下场默认清除effect
|
|
panic("not implemented") // TODO: Implement
|
|
}
|