Merge branch 'main' of github.com:72wo/blazing

This commit is contained in:
2025-11-12 21:46:25 +08:00
13 changed files with 57 additions and 52 deletions

View File

@@ -37,7 +37,10 @@ func (e *Effect7) Damage_Floor() bool {
}
fmt.Println("Effect7_old", e.Ctx().DamageZone.Damage.IntPart())
if e.Ctx().DamageZone.Type == info.DamageType.Red {
e.Ctx().DamageZone.Damage = decimal.NewFromInt(int64(e.Ctx().Opp.CurrentPet.Info.Hp - e.Ctx().Our.CurrentPet.Info.Hp))
if e.Ctx().Our.CurrentPet.Info.Hp <= e.Ctx().Opp.CurrentPet.Info.Hp {
e.Ctx().DamageZone.Damage = decimal.NewFromInt(int64(e.Ctx().Our.CurrentPet.Info.Hp - e.Ctx().Opp.CurrentPet.Info.Hp))
}
}
fmt.Println("Effect7_new", e.Ctx().DamageZone.Damage.IntPart())