diff --git a/priest_disc.lua b/priest_disc.lua index 41b3715..ed1fa24 100644 --- a/priest_disc.lua +++ b/priest_disc.lua @@ -97,7 +97,9 @@ if not defined then -- A spell that gonna be casted on stealthed targets STEALTH_SPOT = { ENABLED = true, - SPELL_ID = PriestSpells.SWD + SPELL_ID = PriestSpells.SWD, + -- used when a stealth rogue near you + SELF_AOE = PriestSpells.HOLY_NOVA }, -- Dispel list on party diff --git a/shared.lua b/shared.lua index fd6bdbf..37254e1 100644 --- a/shared.lua +++ b/shared.lua @@ -791,7 +791,13 @@ if not shared then shared = true if not HasAuraInArray(SharedConfiguration.StealthSpells, object) then return end - Cast(Configuration.Shared.STEALTH_SPOT.SPELL_ID, object, enemy) + if HasAura(Auras.PRIEST_SHIELD, object) and Configuration.Shared.STEALTH_SPOT.SELF_AOE ~= nil and + GetDistanceBetweenObjects(player, object) <= 10 then + Cast(Configuration.Shared.STEALTH_SPOT.SELF_AOE, player, ally) + else + Cast(Configuration.Shared.STEALTH_SPOT.SPELL_ID, object, enemy) + end + TargetUnit(object) end ) diff --git a/shared_spells.lua b/shared_spells.lua index 5e3844a..8f57513 100644 --- a/shared_spells.lua +++ b/shared_spells.lua @@ -86,6 +86,7 @@ if not shared_spells then INNER_FIRE = 48168, FORTITUDE = 48161, ABOLISH_DISEASE = 552, + HOLY_NOVA = 48078 } Auras = {