aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/npcs/antlion2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/npcsystem/npcs/antlion2.lua')
-rw-r--r--gamemode/npcsystem/npcs/antlion2.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/gamemode/npcsystem/npcs/antlion2.lua b/gamemode/npcsystem/npcs/antlion2.lua
index 28154cc..6c16c72 100644
--- a/gamemode/npcsystem/npcs/antlion2.lua
+++ b/gamemode/npcsystem/npcs/antlion2.lua
@@ -36,10 +36,10 @@ NPC.IdleSequences = {
--Attacks should be formated as [i]={function (return int dammage) canattack(ply) = function doattack(ply)}
--NPC will do the most dammage possible per attack
local checkmele = function(self, ply)
- if not self then
+ if self == nil then
print("In antlion2, checkmele called with null self")
end
- if not ply then
+ if ply == nil then
print("In antlion2, checkmele called with null ply")
end
if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end