share/hedgewars/Data/Scripts/Multiplayer/Mutant.lua
changeset 15537 bbb98e22a303
parent 15458 19e987301674
child 15970 a803428704fd
equal deleted inserted replaced
15536:a798e6441a36 15537:bbb98e22a303
   814 function onGearDelete(gear)
   814 function onGearDelete(gear)
   815     -- Remove hogs that are gone
   815     -- Remove hogs that are gone
   816     if GetGearType(gear) == gtHedgehog then
   816     if GetGearType(gear) == gtHedgehog then
   817         numhhs = numhhs - 1
   817         numhhs = numhhs - 1
   818 
   818 
       
   819         if (not gameOver) and (gear == mutant) then
       
   820             mutant = nil
       
   821             mt_hurt = false
       
   822         end
       
   823 
   819         local found
   824         local found
   820         for i=0, #hhs do
   825         for i=0, #hhs do
   821             if hhs[i] == gear then
   826             if hhs[i] == gear then
   822                 found = i
   827                 found = i
   823                 break
   828                 break