From a44d818eada5646fc6fa9ba7e72cc5e67ddf0b11 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 10 Jan 2016 21:14:52 -0500 Subject: Fixed spelling mistake in npc's --- gamemode/npcsystem/npcs/zombie.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/npcsystem/npcs/zombie.lua') diff --git a/gamemode/npcsystem/npcs/zombie.lua b/gamemode/npcsystem/npcs/zombie.lua index b4718a4..2ae78e8 100644 --- a/gamemode/npcsystem/npcs/zombie.lua +++ b/gamemode/npcsystem/npcs/zombie.lua @@ -89,7 +89,7 @@ NPC.Attacks = { --Attack priority is a fucntion that takes a player, and returns an int describing it's prority to attack (higher = more important) NPC will always attack the player with the highest priority function NPC:AttackPriority(ply) local plypos = ply:GetPos() - local mypas = self:GetPos() + local mypos = self:GetPos() if not plypos then return 0 end local dist = plypos:Distance(mypos) return self.Stats["AwareDist"] - dist -- cgit v1.2.3-70-g09d2