fix(fight): 修正空变更导致的潜在逻辑问题
This commit is contained in:
@@ -40,11 +40,15 @@ func (e *Effect73) Action_end_ex() bool {
|
||||
if !e.Input.FightC.IsFirst(e.Ctx().Our.Player) {
|
||||
return true
|
||||
}
|
||||
|
||||
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
|
||||
tt := &info.DamageZone{
|
||||
Type: info.DamageType.Fixed,
|
||||
Damage: e.Ctx().Opp.SumDamage.Mul(decimal.NewFromInt(2)),
|
||||
})
|
||||
}
|
||||
maxhp := e.Ctx().Our.CurrentPet.GetMaxHP().Mul(decimal.NewFromInt(30))
|
||||
if tt.Damage.Cmp(maxhp) == 1 {
|
||||
tt.Damage = maxhp
|
||||
}
|
||||
e.Ctx().Opp.Damage(e.Ctx().Our, tt)
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user