- Fixed several small bugs from 6.2 patch.

- Disabled the special behavior for Tyrant Velhari encounter.
This commit is contained in:
Tercio
2015-06-29 16:33:27 -03:00
parent 89213e7808
commit 72c4fb5a71
8 changed files with 200 additions and 33 deletions
+44 -1
View File
@@ -246,6 +246,47 @@ do
return 0
end
function _detalhes:GetCurrentDungeonBossListFromEJ()
local EJ_CInstance = EJ_GetCurrentInstance()
if (EJ_CInstance and EJ_CInstance ~= 0) then
if (_detalhes.encounter_dungeons [EJ_CInstance]) then
return _detalhes.encounter_dungeons [EJ_CInstance]
end
EJ_SelectInstance (EJ_CInstance)
local name, description, bgImage, buttonImage, loreImage, dungeonAreaMapID, link = EJ_GetInstanceInfo (EJ_CInstance)
local boss_list = {
[EJ_CInstance] = {name, description, bgImage, buttonImage, loreImage, dungeonAreaMapID, link}
}
for i = 1, 20 do
local encounterName, description, encounterID, rootSectionID, link = EJ_GetEncounterInfoByIndex (i, EJ_CInstance)
if (encounterName) then
for o = 1, 6 do
local id, creatureName, creatureDescription, displayInfo, iconImage = EJ_GetCreatureInfo (o, encounterID)
if (id) then
boss_list [creatureName] = {encounterName, encounterID, creatureName, iconImage, EJ_CInstance}
else
break
end
end
else
break
end
end
_detalhes.encounter_dungeons [EJ_CInstance] = boss_list
return boss_list
end
end
function _detalhes:IsRaidRegistered (mapid)
return _detalhes.EncounterInformation [mapid] and true
end
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> core
@@ -253,4 +294,6 @@ do
_detalhes.EncounterInformation [InstanceTable.id] = InstanceTable
return true
end
end
end
--functionas