Fix ally check for trade loot

This commit is contained in:
Road-block
2017-10-29 17:15:01 +02:00
parent 5bdf4a6e5a
commit 8db2b4216e
+1 -1
View File
@@ -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