Core/Spells: Fix logic in AnyDeadUnitSpellTargetInRangeCheck - spells using this should now correctly check target requirements. This is an alternative fix to #4112.

This commit is contained in:
QAston committed 2011-12-24 08:40:30 +01:00
1 parent eecc4b58a7
commit 15bd8f3cd5
2 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -5653,7 +5653,8 @@ SpellCastResult Spell::CheckRange(bool strict)
if (m_spellInfo->RangeEntry)
{
// self cast is used for triggered spells, no range checking needed
// check needed by 68766 51693 - both spells are cast on enemies and have 0 max range
// these are triggered by other spells - possibly we should omit range check in that case?
if (m_spellInfo->RangeEntry->ID == 1)
return SPELL_CAST_OK;