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
+20
View File
@@ -1585,6 +1585,26 @@ Damage Update Status: @INSTANCEDAMAGESTATUS
Details:Dump(exportedValues)
end
elseif (msg == "coach") then
if (not UnitIsGroupLeader("player")) then
Details:Msg("you aren't the raid leader.")
return
end
Details.coach.enabled = not Details.coach.enabled
if (Details.coach.enabled) then
Details:Msg("coach enabled, good luck!")
Details:Msg("[raid leader] stay outside the raid.")
Details:Msg("[assistants] at least one player inside the raid need to have assistant.")
Details:Msg("[players] have an updated version of Details!.")
Details.Coach.Server.EnableCoach()
else
Details:Msg("coach disabled.")
Details.DisableCoach()
end
elseif (msg == "9") then
print ("skin:", Details.skin)
print ("current profile:", _detalhes:GetCurrentProfileName())