Added the baseline for the Coach Mode feature
- Added the command '/details coach' to enabled coach mode, need to be raid leader and all members must have details up to date. - Fixed Tiny Threat not showing threat. - Fixed annoucement interrupt toggle enable was reseting on logon. - Added container_spells:GetOrCreateSpell(id, shouldCreate, token) - Added Details:GetRaidLeader(), return the RL name. - Framework update.
This commit is contained in:
@@ -63,6 +63,18 @@
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function Details:GetRaidLeader()
|
||||
if (IsInRaid()) then
|
||||
for i = 1, GetNumGroupMembers() do
|
||||
local name, rank = GetRaidRosterInfo(i)
|
||||
if (rank == 2) then
|
||||
return name, "raid" .. i
|
||||
end
|
||||
end
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
function _detalhes:UnpackDeathTable (t)
|
||||
local deathevents = t[1]
|
||||
@@ -860,6 +872,9 @@ end
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
elseif (Details.Coach.Server.IsEnabled()) then
|
||||
return true
|
||||
end
|
||||
|
||||
--> don't leave the combat if is in the argus encounter ~REMOVE on 8.0
|
||||
|
||||
Reference in New Issue
Block a user