Skip to content

Commit

Permalink
improved stealth spot
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain-P committed Mar 1, 2018
1 parent 8ae037a commit f8d35c0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion priest_disc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 1 addition & 0 deletions shared_spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ if not shared_spells then
INNER_FIRE = 48168,
FORTITUDE = 48161,
ABOLISH_DISEASE = 552,
HOLY_NOVA = 48078
}

Auras = {
Expand Down

0 comments on commit f8d35c0

Please sign in to comment.