Skip to content

Commit

Permalink
exercise_training_weapons: fix player getposition.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Mar 12, 2024
1 parent 657ca26 commit 9113fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/actions/items/exercise_training_weapons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9113fa2

Please sign in to comment.