27 lines
514 B
Go
27 lines
514 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
|
|
"github.com/alpacahq/alpacadecimal"
|
|
)
|
|
|
|
// 447 - 造成的伤害不少于m
|
|
type Effect447 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect447) DamageLockEx(t *info.DamageZone) bool {
|
|
if t.Type != info.DamageType.Red {
|
|
return true
|
|
}
|
|
t.Damage = alpacadecimal.Max(e.Args()[0], t.Damage)
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 447, &Effect447{})
|
|
}
|