fix(fight): 战斗修改
This commit is contained in:
@@ -25,9 +25,10 @@ type Effect8 struct {
|
||||
}
|
||||
|
||||
// 伤害落实前触发,限制最大伤害
|
||||
func (e *Effect8) Damage_Floor(ctx input.Ctx) bool {
|
||||
if ctx.DamageZone.Type == info.DamageType.Red {
|
||||
ctx.DamageZone.Damage = decimal.NewFromInt(utils.Min(ctx.DamageZone.Damage.IntPart(), int64(ctx.Input.CurrentPet.Info.Hp)-1))
|
||||
func (e *Effect8) Damage_Floor() bool {
|
||||
if e.Ctx().DamageZone.Type == info.DamageType.Red {
|
||||
e.Ctx().DamageZone.Damage = decimal.NewFromInt(utils.Min(e.Ctx().DamageZone.Damage.IntPart(),
|
||||
int64(e.Ctx().Opp.CurrentPet.Info.Hp)-1))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user