Mutant: Fix “Boring” taunt being played when becoming the mutant
authorWuzzy <almikes@aol.com>
Wed, 26 Apr 2017 19:00:32 +0200
changeset 12341 c73521104fac
parent 12340 f706ca71aa86
child 12342 ad09d733fdb0
Mutant: Fix “Boring” taunt being played when becoming the mutant
share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Wed Apr 26 18:53:11 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Wed Apr 26 19:00:32 2017 +0200
@@ -323,7 +323,7 @@
                         SetHealth(mutant,0)
                         mt_hurt= false
                         setGearValue(mutant,"SelfDestruct",true)
-                        TurnTimeLeft = 0
+                        EndTurn()
                     end
             end
     end
@@ -411,7 +411,7 @@
     if gameOver then
         SendStat(siGraphTitle, loc("Score graph"))
 
-        TurnTimeLeft = 0
+        EndTurn(true)
 
         teamsSorted = {}
  
@@ -539,7 +539,7 @@
 
     AddCaption(string.format(loc("%s has mutated! +2 points"), getGearValue(gear, "Name")), GetClanColor(GetHogClan(gear)), capgrpMessage)
 
-    TurnTimeLeft=0
+    EndTurn(true)
 
     AddVisualGear(GetX(gear), GetY(gear), vgtSmokeRing, 0, false)
     AddVisualGear(GetX(gear), GetY(gear), vgtSmokeRing, 0, false)