Support persistent residents with normal resurrection and closer companions
Core tests / core (push) Successful in 2m54s
Core tests / core (push) Successful in 2m54s
This commit is contained in:
@@ -54,7 +54,7 @@ local function attempt(r)
|
||||
if not a or not b then return false,'Resident offline' end
|
||||
if a:GetGUIDLow()~=r.a.guid or a:GetAccountId()~=r.a.account or b:GetGUIDLow()~=r.b.guid or b:GetAccountId()~=r.b.account then return nil,'Identity changed' end
|
||||
if not resident(a) or not resident(b) then return nil,'Resident retired or human-controlled' end
|
||||
if a:GetTeam()~=b:GetTeam() or math.abs(a:GetLevel()-b:GetLevel())>10 then return nil,'Faction or level mismatch' end
|
||||
if a:GetTeam()~=b:GetTeam() or math.abs(a:GetLevel()-b:GetLevel())>5 then return nil,'Faction or level mismatch' end
|
||||
if not available(a) or not available(b) then return false,'Waiting for combat, cast, or taxi to finish' end
|
||||
if a:GetMapId()~=b:GetMapId() or a:GetPhaseMask()~=b:GetPhaseMask() or a:GetDistance(b)>60 then return false,'Waiting for a nearby meeting within 60 yards' end
|
||||
local g=a:GetGroup()
|
||||
|
||||
Reference in New Issue
Block a user