Call modify damage on poison damage
authornemo
Fri, 02 Apr 2010 15:33:11 +0000
changeset 3254 eb1382353361
parent 3253 b0b1b1310b7e
child 3255 6d6f4241debe
Call modify damage on poison damage
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Fri Apr 02 15:30:54 2010 +0000
+++ b/hedgewars/uGears.pas	Fri Apr 02 15:33:11 2010 +0000
@@ -592,7 +592,7 @@
 			begin
             if PHedgehog(Gear^.Hedgehog)^.Effects[hePoisoned] then
                 begin
-                inc(Gear^.Damage, min(5, max(0,Gear^.Health - 1 - Gear^.Damage)));
+                inc(Gear^.Damage, min(ModifyDamage(5,Gear), max(0,Gear^.Health - 1 - Gear^.Damage)));
                 if getRandom(2) = 0 then
                     PlaySound(sndPoisonCough, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack)
                 else