WoWInterface SVN AutoReply

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 12 to Rev 10
    Reverse comparison

Rev 12 → Rev 10

BossFight.lua
212,25 → 212,15
----------------------------------------
-- Check if group is alive
----------------------------------------
function AutoReply:GroupSurvived()
local playerInInstance = IsInInstance()
local posX, posY = nil
local playerSurvived = false
function AutoReply:GroupAlive()
local unitId = ((GetNumRaidMembers() == 0) and "party") or "raid"
SetMapToCurrentZone() -- Sets the current world map continent and zone to be the zone the player is currently in.
for i = 0, math.max(GetNumRaidMembers(), GetNumPartyMembers()) do
local id = (i == 0 and "player") or unitId..i
-- Check if player is out of combat and didn't use any feign death ability to reset the boss.
if not (UnitAffectingCombat(id) or UnitIsDeadOrGhost(id) or UnitIsFeignDeath(id) or
UnitAura(id, "Vanish") or UnitAura(id, "Invisibility") or UnitAura(id, "Shadowmeld")) then
-- Check if player is in the instance
posX, posY = GetPlayerMapPosition(id)
if (posX ~= 0 and posY ~= 0 and playerInInstance) or (posX == 0 and posY == 0 and not playerInInstance) then
playerSurvived = true
end
if not UnitIsDeadOrGhost(id) then
return true
end
end
return playerSurvived
return false
end
 
---------------------------------------------
. Property changes : Deleted: wowi:dirname - AddonName