From 50a1a83fe1e434d50da9a7415ec8ba776b11e2b1 Mon Sep 17 00:00:00 2001 From: Continuity Date: Sun, 25 Aug 2024 16:15:37 +0200 Subject: [PATCH] Hero Talent spell overrides don't check range. Living Flame, Smite and Lightning Bolt can be temporarily replaced by an override spell, rendering the spell useless for range checks. This adds "fallback" spells with a higher priority which will be picked instead. Emerald Blossom is available and unmodified for Pres and Aug Evoker. Mind Blast is available for Disc Priest, where the override happens and no SW:P is available. Earth Shock and Elemental blast share the same choice node and act as a replacement for Lightning Bold in this case for Elemental Shaman. --- LibRangeCheck-3.0/LibRangeCheck-3.0.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LibRangeCheck-3.0/LibRangeCheck-3.0.lua b/LibRangeCheck-3.0/LibRangeCheck-3.0.lua index b46865a..6784b80 100644 --- a/LibRangeCheck-3.0/LibRangeCheck-3.0.lua +++ b/LibRangeCheck-3.0/LibRangeCheck-3.0.lua @@ -40,7 +40,7 @@ License: MIT -- @class file -- @name LibRangeCheck-3.0 local MAJOR_VERSION = "LibRangeCheck-3.0" -local MINOR_VERSION = 25 +local MINOR_VERSION = 26 ---@class lib local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) @@ -168,6 +168,7 @@ end -- Evoker tinsert(HarmSpells.EVOKER, 362969) -- Azure Strike (25 yards) +tinsert(FriendSpells.EVOKER, 355913) -- Emerald Blossom (25 yards) tinsert(FriendSpells.EVOKER, 361469) -- Living Flame (25 yards) tinsert(FriendSpells.EVOKER, 360823) -- Naturalize (Preservation) (30 yards) @@ -271,6 +272,7 @@ tinsert(FriendSpells.PRIEST, 527) -- Purify / Dispel Magic (40 yards retail, 30 tinsert(FriendSpells.PRIEST, 2061) -- Flash Heal (40 yards, level 3 retail, level 20 tbc) tinsert(HarmSpells.PRIEST, 589) -- Shadow Word: Pain (40 yards) +tinsert(HarmSpells.PRIEST, 8092) -- Mind Blast (40 yards) tinsert(HarmSpells.PRIEST, 585) -- Smite (40 yards) tinsert(HarmSpells.PRIEST, 5019) -- Shoot (30 yards) @@ -306,6 +308,8 @@ if not isRetail then end tinsert(HarmSpells.SHAMAN, 370) -- Purge (30 yards) +tinsert(HarmSpells.SHAMAN, 8042) -- Earth Shock (40 yards) +tinsert(HarmSpells.SHAMAN, 117014) -- Elemental Blast (40 yards) tinsert(HarmSpells.SHAMAN, 188196) -- Lightning Bolt (40 yards) tinsert(HarmSpells.SHAMAN, 73899) -- Primal Strike (Melee Range)