--- a/share/hedgewars/Data/Scripts/Multiplayer/The_Specialists.lua Fri Sep 09 15:36:30 2011 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/The_Specialists.lua Fri Sep 09 15:52:59 2011 +0200
@@ -259,42 +259,42 @@
if (CurrentHedgehog ~= nil) then
currName = GetHogName(CurrentHedgehog)
-
+
if (currName ~= lastName) and (switchStage > 100) then
AddCaption(loc("Switched to ") .. currName .. "!")
- AssignAmmo()
+ AssignAmmo()
end
- if (TurnTimeLeft > 0) and (TurnTimeLeft ~= TurnTime) and (switchStage < 100) then
-
- AddCaption(loc("Prepare yourself") .. ", " .. currName .. "!")
+ if (TurnTimeLeft > 0) and (TurnTimeLeft ~= TurnTime) and (switchStage < 100) then
+
+ AddCaption(loc("Prepare yourself") .. ", " .. currName .. "!")
hogCounter = 0
runOnHogsInTeam(CountHog, GetHogTeamName(CurrentHedgehog) )
if hogCounter > 1 then
- switchStage = switchStage + 1
-
+ switchStage = switchStage + 1
+
if switchStage == 1 then
AddAmmo(CurrentHedgehog, amSwitch, 1)
-
+
elseif switchStage == 2 then
ParseCommand("setweap " .. string.char(amSwitch))
elseif switchStage == 3 then
- SetGearMessage(CurrentHedgehog,gmAttack)
+ SetGearMessage(CurrentHedgehog,gmAttack)
elseif switchStage == 4 then
switchStage = 110
AddAmmo(CurrentHedgehog, amSwitch, 0)
end
-
+
else
switchStage = 110
end
- end
-
+ end
+
lastName = currName
end
@@ -307,12 +307,12 @@
hhs[numhhs] = gear
numhhs = numhhs + 1
elseif (GetGearType(gear) == gtMine) and (started == true) then
- SetTimer(gear,5000)
+ SetTimer(gear,5000)
end
-
+
if (GetGearType(gear) == gtHedgehog) or (GetGearType(gear) == gtResurrector) then
trackGear(gear)
- end
+ end
end
@@ -320,7 +320,7 @@
function onGearDelete(gear)
if (GetGearType(gear) == gtHedgehog) or (GetGearType(gear) == gtResurrector) then
trackDeletion(gear)
- end
+ end
end
function onAmmoStoreInit()