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