hedgewars/uGearsList.pas
changeset 7176 fb4b0c6dfdbd
parent 7168 8defaabce92e
child 7272 71df899c4163
equal deleted inserted replaced
7174:80480d21e6ed 7176:fb4b0c6dfdbd
   544             uStats.HedgehogDamaged(Gear, CurrentHedgehog, 0, true);
   544             uStats.HedgehogDamaged(Gear, CurrentHedgehog, 0, true);
   545 
   545 
   546         inc(KilledHHs);
   546         inc(KilledHHs);
   547         RecountTeamHealth(team);
   547         RecountTeamHealth(team);
   548         if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Effects[heResurrectable] <> 0)  and
   548         if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Effects[heResurrectable] <> 0)  and
   549         (Gear^.Hedgehog^.Effects[heResurrectable] = 0) then
   549         //(Gear^.Hedgehog^.Effects[heResurrectable] = 0) then
       
   550         (Gear^.Hedgehog^.Team^.Clan <> CurrentHedgehog^.Team^.Clan) then
   550             with CurrentHedgehog^ do 
   551             with CurrentHedgehog^ do 
   551                 begin
   552                 begin
   552                 inc(Team^.stats.AIKills);
   553                 inc(Team^.stats.AIKills);
   553                 FreeTexture(Team^.AIKillsTex);
   554                 FreeTexture(Team^.AIKillsTex);
   554                 Team^.AIKillsTex := RenderStringTex(inttostr(Team^.stats.AIKills), Team^.Clan^.Color, fnt16);
   555                 Team^.AIKillsTex := RenderStringTex(inttostr(Team^.stats.AIKills), Team^.Clan^.Color, fnt16);