From d4c6f3abca8f839f30fb66041089aa186c870199 Mon Sep 17 00:00:00 2001 From: Neckbeard Date: Mon, 25 Sep 2023 21:43:43 -0400 Subject: [PATCH] Fixes target in magian command --- scripts/commands/givemagianitem.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))