From 9113fa2806dc6ded4fc5895536d52ef59bf52758 Mon Sep 17 00:00:00 2001 From: Elson Costa Date: Mon, 11 Mar 2024 17:50:53 -0300 Subject: [PATCH] exercise_training_weapons: fix player getposition. --- data/scripts/actions/items/exercise_training_weapons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/actions/items/exercise_training_weapons.lua b/data/scripts/actions/items/exercise_training_weapons.lua index 4a72f19e5c8..fd62e07208f 100644 --- a/data/scripts/actions/items/exercise_training_weapons.lua +++ b/data/scripts/actions/items/exercise_training_weapons.lua @@ -111,7 +111,7 @@ local function exerciseTrainingEvent(playerId, tilePosition, weaponId, dummyId) tilePosition:sendMagicEffect(CONST_ME_HITAREA) if exerciseWeaponsTable[weaponId].effect then - playerPosition:sendDistanceEffect(tilePosition, exerciseWeaponsTable[weaponId].effect) + player:getPosition():sendDistanceEffect(tilePosition, exerciseWeaponsTable[weaponId].effect) end if weapon:getAttribute(ITEM_ATTRIBUTE_CHARGES) <= 0 then