Battalion (King): Kill minions with default boom
authorWuzzy <Wuzzy2@mail.ru>
Fri, 07 Jun 2019 10:50:05 +0200
changeset 15126 ab21cbb0e3a0
parent 15125 9e1e234a417c
child 15127 f3f09c71ff6c
Battalion (King): Kill minions with default boom
share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Fri Jun 07 10:36:18 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Fri Jun 07 10:50:05 2019 +0200
@@ -1174,15 +1174,14 @@
   local msgColor = getHogInfo(KingHog, 'clanColor')
 
   AddCaption(string.format(loc("The king of %s has died!"), team), capcolDefault, capgrpGameState)
+  SetState(KingHog, gstHHDeath)
 
   -- Kill the rest of the team normally, just like the official King Mode game modifier
   for hog, val in pairs(hogInfo) do
     if getHogInfo(hog, 'team') == team then
       hp = GetHealth(hog)
       if hp ~= nil and hp > 0 then
-        SetState(KingHog, gstHHDeath)
         SetHealth(hog, 0)
-        SetGearValues(hog, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 0)
       end
     end
   end