- Created custom spells for Twin Ogron's Pulverize. Now it has 3 spells one for each wave.
- Created custom spells for Ko'ragh Overflowing Energy. Now it has 2 spells one for when the ball is catched and other when it reaches the ground and explodes.
This commit is contained in:
@@ -34,7 +34,8 @@
|
||||
local _GetUnitName = GetUnitName -- api local
|
||||
|
||||
local _string_replace = _detalhes.string.replace --details api
|
||||
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> constants
|
||||
|
||||
@@ -1006,8 +1007,6 @@
|
||||
end
|
||||
|
||||
function _detalhes:AddDefaultCustomDisplays()
|
||||
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
|
||||
local PotionUsed = {
|
||||
name = Loc ["STRING_CUSTOM_POT_DEFAULT"],
|
||||
@@ -1413,7 +1412,7 @@
|
||||
desc = Loc ["STRING_CUSTOM_DTBS_DESC"],
|
||||
source = false,
|
||||
target = false,
|
||||
script_version = 7,
|
||||
script_version = 8,
|
||||
script = [[
|
||||
--> get the parameters passed
|
||||
local combat, instance_container, instance = ...
|
||||
@@ -1436,6 +1435,7 @@
|
||||
local AllSpells = character:GetSpellList()
|
||||
|
||||
for spellid, spell in pairs (AllSpells) do
|
||||
|
||||
if (spell.total >= 1 and spellid > 10) then
|
||||
instance_container:AddValue (spell, spell.total)
|
||||
|
||||
@@ -1459,6 +1459,7 @@
|
||||
--> return
|
||||
return total, top, amount
|
||||
]],
|
||||
|
||||
tooltip = [[
|
||||
--get the parameters passed
|
||||
local actor, combat, instance = ...
|
||||
|
||||
@@ -65,6 +65,13 @@ do
|
||||
[7] = {name = Loc ["STRING_ENVIRONMENTAL_LAVA"], icon = [[Interface\ICONS\Ability_Rhyolith_Volcano]]},
|
||||
[8] = {name = Loc ["STRING_ENVIRONMENTAL_SLIME"], icon = [[Interface\ICONS\Ability_Creature_Poison_02]]},
|
||||
|
||||
[161576] = {name = GetSpellInfo (161576) .. " (" .. Loc ["STRING_EXPLOSION"] .. ")"}, --> Ko'ragh's Overflowing Energy (explosion)
|
||||
[161612] = {name = GetSpellInfo (161576) .. " (" .. Loc ["STRING_CAUGHT"] .. ")"}, --> Ko'ragh's Overflowing Energy (caught)
|
||||
|
||||
[158336] = {name = GetSpellInfo (158336) .. " (" .. Loc ["STRING_WAVE"] .. " #1)"}, --> Twins Ogron Pulverize waves.
|
||||
[158417] = {name = GetSpellInfo (158417) .. " (" .. Loc ["STRING_WAVE"] .. " #2)"}, --> Twins Ogron Pulverize waves.
|
||||
[158420] = {name = GetSpellInfo (158420) .. " (" .. Loc ["STRING_WAVE"] .. " #3)"}, --> Twins Ogron Pulverize waves.
|
||||
|
||||
[59638] = {name = GetSpellInfo (59638) .. " (" .. Loc ["STRING_MIRROR_IMAGE"] .. ")"}, --> Mirror Image's Frost Bolt (mage)
|
||||
[88082] = {name = GetSpellInfo (88082) .. " (" .. Loc ["STRING_MIRROR_IMAGE"] .. ")"}, --> Mirror Image's Fireball (mage)
|
||||
|
||||
|
||||
@@ -266,8 +266,8 @@
|
||||
|
||||
DetailsCustomPanel.code1 = custom_object:GetScript()
|
||||
DetailsCustomPanel.code2 = custom_object:GetScriptToolip()
|
||||
DetailsCustomPanel.code3 = custom_object:GetScriptTotal()
|
||||
DetailsCustomPanel.code4 = custom_object:GetScriptPercent()
|
||||
DetailsCustomPanel.code3 = custom_object:GetScriptTotal() or DetailsCustomPanel.code3_default
|
||||
DetailsCustomPanel.code4 = custom_object:GetScriptPercent() or DetailsCustomPanel.code4_default
|
||||
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user