Skip to content

Commit

Permalink
Fix targetPlayer bug in find_person.lua (otland#2043)
Browse files Browse the repository at this point in the history
* Fix targetPlayer bug in find_person.lua

Forgot to add the variable

* Update find_person.lua
  • Loading branch information
WibbenZ authored and marksamman committed Jan 1, 2017
1 parent 1ca0ec6 commit 2b36f6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/spells/scripts/support/find_person.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function onCastSpell(creature, variant)
end

local playerPosition = creature:getPosition()
local targetPosition = targetPlayer:getPosition()
local offset = {
x = playerPosition.x - targetPosition.x,
y = playerPosition.y - targetPosition.y,
Expand Down

0 comments on commit 2b36f6c

Please sign in to comment.