- Fixed several small bugs from 6.2 patch.
- Disabled the special behavior for Tyrant Velhari encounter.
This commit is contained in:
+44
-1
@@ -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
|
||||
Reference in New Issue
Block a user