--- a/hedgewars/uGearsList.pas Sun Jun 03 23:04:21 2012 -0400
+++ b/hedgewars/uGearsList.pas Mon Jun 04 08:11:47 2012 -0400
@@ -546,7 +546,8 @@
inc(KilledHHs);
RecountTeamHealth(team);
if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Effects[heResurrectable] <> 0) and
- (Gear^.Hedgehog^.Effects[heResurrectable] = 0) then
+ //(Gear^.Hedgehog^.Effects[heResurrectable] = 0) then
+ (Gear^.Hedgehog^.Team^.Clan <> CurrentHedgehog^.Team^.Clan) then
with CurrentHedgehog^ do
begin
inc(Team^.stats.AIKills);
--- 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);