This commit is contained in:
Roman Hergenreder 2017-11-22 22:09:22 +01:00
parent b9000b79da
commit 1231dff151

@ -83,7 +83,6 @@ end
function AutoQueueBG:CheckRaidMember(raidMember) function AutoQueueBG:CheckRaidMember(raidMember)
if UnitExists(raidMember) == 1 if UnitExists(raidMember) == 1
and GetUnitName(raidMember) == playerName
and UnitIsFriend(raidMember,"player") == 1 and UnitIsFriend(raidMember,"player") == 1
and UnitIsDeadOrGhost(raidMember) == nil and UnitIsDeadOrGhost(raidMember) == nil
and UnitInRange(raidMember) == 1 then and UnitInRange(raidMember) == 1 then
@ -196,6 +195,7 @@ function AutoQueueBG:BuffPlayers()
if AutoQueueBG:CheckRaidMember(unit) then if AutoQueueBG:CheckRaidMember(unit) then
if AutoQueueBG:BuffDuration(unit, GetSpellInfo(GSDK)) < 15 then if AutoQueueBG:BuffDuration(unit, GetSpellInfo(GSDK)) < 15 then
BuffPlayer(unit, GSDK) BuffPlayer(unit, GSDK)
return;
end end
end end
end end