hedgewars/uGearsUtils.pas
changeset 7176 fb4b0c6dfdbd
parent 7168 8defaabce92e
child 7190 aa8d68817c32
--- a/hedgewars/uGearsUtils.pas	Sun Jun 03 23:04:21 2012 -0400
+++ b/hedgewars/uGearsUtils.pas	Mon Jun 04 08:11:47 2012 -0400
@@ -452,7 +452,8 @@
     gear^.Damage := 0;
     gear^.Health := gear^.Hedgehog^.InitialHealth;
     gear^.Hedgehog^.Effects[hePoisoned] := 0;
-    if CurrentHedgehog^.Effects[heResurrectable] = 0 then
+    if (CurrentHedgehog^.Effects[heResurrectable] = 0) or ((CurrentHedgehog^.Effects[heResurrectable] <> 0)
+          and (Gear^.Hedgehog^.Team^.Clan <> CurrentHedgehog^.Team^.Clan)) then
         with CurrentHedgehog^ do 
             begin
             inc(Team^.stats.AIKills);