mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[11793] Add more features to SelectAttackingTarget
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
6baf677a63
commit
0eff04c161
6 changed files with 98 additions and 32 deletions
|
|
@ -5981,7 +5981,9 @@ SpellCastResult Spell::CheckRange(bool strict)
|
|||
switch(m_spellInfo->rangeIndex)
|
||||
{
|
||||
// self cast doesn't need range checking -- also for Starshards fix
|
||||
// spells that can be cast anywhere also need no check
|
||||
case SPELL_RANGE_IDX_SELF_ONLY:
|
||||
case SPELL_RANGE_IDX_ANYWHERE:
|
||||
return SPELL_CAST_OK;
|
||||
// combat range spells are treated differently
|
||||
case SPELL_RANGE_IDX_COMBAT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue