poison should ruin a flawless victory. ht Case_Of
authornemo
Thu, 12 Mar 2020 15:07:32 -0400
changeset 15571 608b5de819a5
parent 15570 e1c2ca38e511
child 15572 0b16baefefd1
poison should ruin a flawless victory. ht Case_Of
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Wed Mar 11 23:20:15 2020 +0300
+++ b/hedgewars/uGears.pas	Thu Mar 12 15:07:32 2020 -0400
@@ -177,6 +177,7 @@
             // Deal poison damage (when not frozen)
             if (Gear^.Hedgehog^.Effects[hePoisoned] <> 0) and (Gear^.Hedgehog^.Effects[heFrozen] = 0) then
                 begin
+				Gear^.Hedgehog^.Team^.Clan^.Flawless:= false;
                 inc(tmp, ModifyDamage(Gear^.Hedgehog^.Effects[hePoisoned], Gear));
                 if (GameFlags and gfResetHealth) <> 0 then
                     dec(Gear^.Hedgehog^.InitialHealth);