# HG changeset patch # User Wuzzy # Date 1559897405 -7200 # Node ID ab21cbb0e3a0670730bed28a31dd12c5691e7010 # Parent 9e1e234a417c177a5b193bd3921a3a3c99601606 Battalion (King): Kill minions with default boom diff -r 9e1e234a417c -r ab21cbb0e3a0 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