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:
Tercio Jose
2020-11-03 20:55:19 -03:00
parent 262f115114
commit 93a7a8cc69
15 changed files with 1587 additions and 35 deletions
+15
View File
@@ -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