share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
changeset 15559 bbb98e22a303
parent 15483 19e987301674
child 16000 a803428704fd
--- a/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Sat Jan 04 01:39:13 2020 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua	Tue Jan 07 13:21:04 2020 +0100
@@ -816,6 +816,11 @@
     if GetGearType(gear) == gtHedgehog then
         numhhs = numhhs - 1
 
+        if (not gameOver) and (gear == mutant) then
+            mutant = nil
+            mt_hurt = false
+        end
+
         local found
         for i=0, #hhs do
             if hhs[i] == gear then