diff options
Diffstat (limited to 'gamemode/npcsystem/npcs/bird.lua')
| -rw-r--r-- | gamemode/npcsystem/npcs/bird.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/npcsystem/npcs/bird.lua b/gamemode/npcsystem/npcs/bird.lua index d8dfb30..94a0986 100644 --- a/gamemode/npcsystem/npcs/bird.lua +++ b/gamemode/npcsystem/npcs/bird.lua @@ -74,7 +74,7 @@ NPC.AwareEnemies = {} --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
|
