Fix BRW adding ammoInCrate times ammo on start of turn instead of 1
authorWuzzy <Wuzzy2@mail.ru>
Fri, 31 Aug 2018 11:12:41 +0200
changeset 13720 7284233d9132
parent 13719 ed22eb551a75
child 13721 7edaeca8f816
Fix BRW adding ammoInCrate times ammo on start of turn instead of 1
share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua	Fri Aug 31 11:11:58 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Balanced_Random_Weapon.lua	Fri Aug 31 11:12:41 2018 +0200
@@ -127,7 +127,7 @@
             setTeamValue(name, "ammo", ammo)
         end
         for i, w in pairs(ammo) do
-            AddAmmo(hog, w)
+            AddAmmo(hog, w, 1)
         end
         setTeamValue(name, "processed", true)
     end