Don't say "first blood" in games with only 1 clan
authorWuzzy <Wuzzy2@mail.ru>
Thu, 10 Jan 2019 19:47:18 +0100
changeset 14566 adf3e7d94db0
parent 14565 3105881d5840
child 14567 7e4862823649
Don't say "first blood" in games with only 1 clan
hedgewars/uStats.pas
--- a/hedgewars/uStats.pas	Thu Jan 10 19:21:08 2019 +0100
+++ b/hedgewars/uStats.pas	Thu Jan 10 19:47:18 2019 +0100
@@ -255,7 +255,7 @@
         killsCheck:= 0;
 
     // First blood (first damage, poison or kill)
-    if (not FirstBlood) and ((DamageTotal > 0) or (KillsTotal > 0) or (PoisonTotal > 0)) and ((CurrentHedgehog^.stats.DamageGiven = DamageTotal) and (CurrentHedgehog^.stats.StepKills = KillsTotal) and (PoisonTotal = PoisonTurn + PoisonClan)) then
+    if (not FirstBlood) and (ClansCount > 1) and ((DamageTotal > 0) or (KillsTotal > 0) or (PoisonTotal > 0)) and ((CurrentHedgehog^.stats.DamageGiven = DamageTotal) and (CurrentHedgehog^.stats.StepKills = KillsTotal) and (PoisonTotal = PoisonTurn + PoisonClan)) then
         begin
         FirstBlood:= true;
         AddVoice(sndFirstBlood, CurrentTeam^.voicepack);