Skip to content

Commit

Permalink
Merge pull request #4551 from N3ckB3ard/fix_magian_command
Browse files Browse the repository at this point in the history
[LUA] Fixes self target in "!givemagianitem" command
  • Loading branch information
claywar authored Sep 30, 2023
2 parents 4efd896 + d4c6f3a commit 7e0406a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/commands/givemagianitem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ 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)
xi.magian.giveRequiredItem(target, trialId)
end

player:PrintToPlayer(string.format('Gave player \'%s\' Item for Trial ID \'%u\' ', target, trialId))
Expand Down

0 comments on commit 7e0406a

Please sign in to comment.