diff --git a/scripts/commands/givemagianitem.lua b/scripts/commands/givemagianitem.lua index f3c51e2ab46..776fddad9d5 100644 --- a/scripts/commands/givemagianitem.lua +++ b/scripts/commands/givemagianitem.lua @@ -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