aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-03-12 21:45:57 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-03-12 21:45:57 -0500
commit12c1327a1878cdcd76524a60673e5cf346b9a3da (patch)
tree9a1b4c1f44025d2ac871cf4a08d853b7220d6e73 /gamemode/itemsystem
parent8cfdb67ed90bfb95916cbd034ce18b9c175feb50 (diff)
downloadwintersurvival2-12c1327a1878cdcd76524a60673e5cf346b9a3da.tar.gz
wintersurvival2-12c1327a1878cdcd76524a60673e5cf346b9a3da.tar.bz2
wintersurvival2-12c1327a1878cdcd76524a60673e5cf346b9a3da.zip
Fixed bug that allowed fireballs without finishing minigame
Diffstat (limited to 'gamemode/itemsystem')
-rw-r--r--gamemode/itemsystem/items/spell_fireball.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/gamemode/itemsystem/items/spell_fireball.lua b/gamemode/itemsystem/items/spell_fireball.lua
index ef955bf..0cdb356 100644
--- a/gamemode/itemsystem/items/spell_fireball.lua
+++ b/gamemode/itemsystem/items/spell_fireball.lua
@@ -77,6 +77,7 @@ function ITEM:OnSecondary(pl,tr)
end
local fireballfunc = function(num,pl,self)
+ if(num == 0) then return end
if(self.NumFireballs < self.MaxFireballs) then
self.NumFireballs = self.NumFireballs+1
print("New num fireballs:" .. self.NumFireballs)