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
+10 -2
View File
@@ -608,13 +608,13 @@ end
if (not self.iniciada) then
self:RestauraJanela (self.meu_id, nil, true) --parece que esta chamando o ativar instance denovo... passei true no load_only vamos ver o resultado
--tiny threat parou de funcionar depois de /reload depois dessa mudança, talvez tenha algo para carregar ainda
self.iniciada = true
else
_detalhes.opened_windows = _detalhes.opened_windows+1
end
self:ChangeSkin() --carrega a skin aqui que era antes feito dentro do restaura janela
_detalhes:TrocaTabela (self, nil, nil, nil, true)
if (self.hide_icon) then
@@ -634,7 +634,7 @@ end
if (not temp) then
if (self.modo == modo_raid) then
_detalhes.RaidTables:EnableRaidMode (self)
_detalhes.RaidTables:EnableRaidMode(self)
elseif (self.modo == modo_alone) then
self:SoloMode (true)
@@ -656,6 +656,14 @@ end
if (not temp and not _detalhes.initializing) then
_detalhes:SendEvent ("DETAILS_INSTANCE_OPEN", nil, self)
end
if (self.modo == modo_raid) then
_detalhes.RaidTables:EnableRaidMode(self)
elseif (self.modo == modo_alone) then
self:SoloMode (true)
end
end
------------------------------------------------------------------------------------------------------------------------