Commit 019728f5 authored by Ivaria's avatar Ivaria
Browse files

Added Priest 'Divine Aegis' back as a pumpable shield absorb

parent b4bc6cfe
......@@ -374,6 +374,7 @@ VUHDO_HEALING_HOTS = {
[VUHDO_SPELL_ID.ECHO_OF_LIGHT] = true,
[VUHDO_SPELL_ID.ATONEMENT] = true,
[VUHDO_SPELL_ID.SPIRIT_SHELL] = true,
[VUHDO_SPELL_ID.DIVINE_AEGIS] = true,
-- Druid
[VUHDO_SPELL_ID.REJUVENATION] = true,
[VUHDO_SPELL_ID.REGROWTH] = true,
......
......@@ -30,6 +30,7 @@ VUHDO_SPELL_ID.CONCUSSIVE_SHOT = VUHDO_getSpellInfo(5116);
VUHDO_SPELL_ID.CYCLONE = VUHDO_getSpellInfo(33786);
VUHDO_SPELL_ID.DESPERATE_PRAYER = VUHDO_getSpellInfo(19236);
VUHDO_SPELL_ID.DISPEL_MAGIC = VUHDO_getSpellInfo(528);
VUHDO_SPELL_ID.DIVINE_AEGIS = VUHDO_getSpellInfo(47753);
VUHDO_SPELL_ID.DIVINE_ILLUMINATION = VUHDO_getSpellInfo(71166);
VUHDO_SPELL_ID.DREAM_BREATH = VUHDO_getSpellInfo(355936);
VUHDO_SPELL_ID.DREAM_FLIGHT = VUHDO_getSpellInfo(359816);
......
......@@ -15,11 +15,13 @@ local VUHDO_SHIELDS = {
[114893] = 10, -- Stone Bulwark Totem (shaman talent)
[187805] = 15, -- VUHDO_SPELL_ID.BUFF_ETHERALUS
[114908] = 10, -- VUHDO_SPELL_ID.SPIRIT_SHELL
[47753] = 17, -- VUHDO_SPELL_ID.DIVINE_AEGIS
}
--
local VUHDO_PUMP_SHIELDS = {
[VUHDO_SPELL_ID.DIVINE_AEGIS] = 0.3,
}
......@@ -184,9 +186,11 @@ local function VUHDO_updateShieldValue(aUnit, aShieldName, anAmount, aDuration,
if aDuration then
VUHDO_SHIELD_EXPIRY[aUnit][aShieldName] = GetTime() + aDuration;
VUHDO_SHIELD_SIZE[aUnit][aShieldName] = anAmount;
--VUHDO_xMsg("Shield overwritten");
if not sIsPumpAegis or not VUHDO_PUMP_SHIELDS[aShieldName] then
VUHDO_SHIELD_SIZE[aUnit][aShieldName] = anAmount;
--VUHDO_xMsg("Shield overwritten");
end
elseif (aExpirationTime or 0) > VUHDO_SHIELD_EXPIRY[aUnit][aShieldName] then
VUHDO_SHIELD_EXPIRY[aUnit][aShieldName] = aExpirationTime;
elseif VUHDO_SHIELD_SIZE[aUnit][aShieldName] < anAmount then
......
......@@ -30,6 +30,7 @@ VUHDO_SPELLS = {
[VUHDO_SPELL_ID.SERENDIPITY] = { ["isHot"] = true, ["nodefault"] = true },
[VUHDO_SPELL_ID.ATONEMENT] = { ["isHot"] = true },
[VUHDO_SPELL_ID.SPIRIT_SHELL] = { ["isHot"] = true },
[VUHDO_SPELL_ID.DIVINE_AEGIS] = { ["isHot"] = true },
-- Shaman
[VUHDO_SPELL_ID.RIPTIDE] = { ["isHot"] = true },
......@@ -77,7 +78,7 @@ function VUHDO_initFromSpellbook()
twipe(VUHDO_PLAYER_HOTS);
for tSpellName, someParams in pairs(VUHDO_SPELLS) do
if someParams["isHot"] and VUHDO_isSpellKnown(tSpellName) then
if someParams["isHot"] and (VUHDO_isSpellKnown(tSpellName) or VUHDO_isTalentKnown(tSpellName)) then
VUHDO_PLAYER_HOTS[#VUHDO_PLAYER_HOTS + 1] = tSpellName;
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment