Files
bl/logic/service/fight/effect/effect_135.go

35 lines
614 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
/**
* 造成的伤害不会低于n
*/
func init() {
input.InitEffect(input.EffectType.Skill, 135, &Effect135{})
}
type Effect135 struct {
node.EffectNode
}
func (e *Effect135) DamageFloor(t *info.DamageZone) bool {
// fmt.Println("Effect135_old", t.Damage.IntPart())
if t.Type == info.DamageType.Red {
t.Damage = alpacadecimal.Max(t.Damage, e.Args()[0])
}
//fmt.Println("Effect135_new", t.Damage.IntPart())
return true
}