mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
refactor(Core/Spell): Use ApplySpellFix with SpellInfo (#9938)
This commit is contained in:
@@ -723,7 +723,7 @@ void Pet::Update(uint32 diff)
|
||||
if (!spellInfo)
|
||||
return;
|
||||
float max_range = GetSpellMaxRangeForTarget(tempspellTarget, spellInfo);
|
||||
if (spellInfo->RangeEntry->type == SPELL_RANGE_MELEE)
|
||||
if (spellInfo->RangeEntry->Flags == SPELL_RANGE_MELEE)
|
||||
max_range -= 2 * MIN_MELEE_REACH;
|
||||
|
||||
if (IsWithinLOSInMap(tempspellTarget) && GetDistance(tempspellTarget) < max_range)
|
||||
|
||||
Reference in New Issue
Block a user