34 lines
549 B
Go
34 lines
549 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
func init() {
|
|
t := &Effect125{}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 125, t)
|
|
|
|
}
|
|
|
|
// Effect 125: {0}回合内每回合被攻击所受到的伤害不超过{1}
|
|
type Effect125 struct {
|
|
RoundEffectSideArg0Base
|
|
}
|
|
|
|
// 默认添加回合
|
|
|
|
func (e *Effect125) DamageLockEx(t *info.DamageZone) bool {
|
|
|
|
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
|
|
}
|