Skip to content

Commit

Permalink
Fixes target in magian command
Browse files Browse the repository at this point in the history
  • Loading branch information
N3ckB3ard committed Sep 26, 2023
1 parent 5635aea commit 587f63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/commands/givemagianitem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ commandObj.onTrigger = function(player, target, trialId, isRewardItem)
player:PrintToPlayer(string.format('Player \'%s\' does not have free space for that item!', target))
else
if giveRewardItem then
xi.magian.giveRewardItem(player, trialId)
xi.magian.giveRewardItem(target, trialId)
else
xi.magian.giveRequiredItem(player, trialId)
end
Expand Down

0 comments on commit 587f63d

Please sign in to comment.