From 8db2b4216eb713808f1ddd8850a6518d38a249e9 Mon Sep 17 00:00:00 2001 From: Road-block Date: Sun, 29 Oct 2017 17:15:01 +0200 Subject: [PATCH] Fix ally check for trade loot --- shootyepgp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shootyepgp.lua b/shootyepgp.lua index 059c2a0..db69bcd 100644 --- a/shootyepgp.lua +++ b/shootyepgp.lua @@ -1403,7 +1403,7 @@ function sepgp:tradeLoot(playerState,targetState) end local bind = self:itemBinding(itemString) if (not bind) or (bind ~= self.VARS.boe) then return end - if UnitExists("target") and UnitIsPlayer("target") and UnitCanCooperate("target") and (not UnitIsUnit("player","target")) then + if UnitExists("target") and UnitIsPlayer("target") and UnitCanCooperate("player","target") and (not UnitIsUnit("player","target")) then local tradeTarget = UnitName("target") local _, class = self:verifyGuildMember(tradeTarget,true) if not (class) then return end