43 lines
711 B
Go
43 lines
711 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
func init() {
|
|
t := &Effect125{
|
|
EffectNode: node.EffectNode{},
|
|
}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 125, t)
|
|
|
|
}
|
|
|
|
type Effect125 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
// 默认添加回合
|
|
func (e *Effect125) SetArgs(t *input.Input, a ...int) {
|
|
|
|
e.EffectNode.SetArgs(t, a...)
|
|
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
|
|
|
|
}
|
|
func (e *Effect125) DamageLock_ex(t *info.DamageZone) bool {
|
|
if !e.Hit() {
|
|
return true
|
|
}
|
|
if t.Type != info.DamageType.Red {
|
|
return true
|
|
}
|
|
|
|
if t.Damage.Cmp(e.Args()[1]) == -1 {
|
|
return true
|
|
}
|
|
t.Damage=e.Args()[1]
|
|
return true
|
|
}
|