# HG changeset patch
# User nemo
# Date 1270222391 0
# Node ID eb1382353361778165b767fdf16a914b81e32fe7
# Parent  b0b1b1310b7ea6ae269660491039f51ea0a6e29f
Call modify damage on poison damage

diff -r b0b1b1310b7e -r eb1382353361 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