Core/Spells: Correctly define TARGET_UNIT_NEARBY_PARTY(3) and TARGET_UNIT_NEARBY_ALLY(4) target types.
This commit is contained in:
@@ -2080,7 +2080,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
|
||||
target = SearchNearbyTarget(range, SPELL_TARGETS_ENEMY, SpellEffIndex(i));
|
||||
break;
|
||||
case TARGET_UNIT_NEARBY_ALLY:
|
||||
case TARGET_UNIT_NEARBY_ALLY_UNK:
|
||||
case TARGET_UNIT_NEARBY_PARTY: // TODO: fix party/raid targets
|
||||
case TARGET_UNIT_NEARBY_RAID:
|
||||
range = GetSpellMaxRange(m_spellInfo, true);
|
||||
if (modOwner) modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_RANGE, range, this);
|
||||
|
||||
@@ -134,8 +134,8 @@ SpellMgr::SpellMgr()
|
||||
break;
|
||||
case TARGET_UNIT_NEARBY_ENEMY:
|
||||
case TARGET_UNIT_NEARBY_ALLY:
|
||||
case TARGET_UNIT_NEARBY_ALLY_UNK:
|
||||
case TARGET_UNIT_NEARBY_ENTRY:
|
||||
case TARGET_UNIT_NEARBY_PARTY:
|
||||
case TARGET_UNIT_NEARBY_RAID:
|
||||
case TARGET_GAMEOBJECT_NEARBY_ENTRY:
|
||||
SpellTargetType[i] = TARGET_TYPE_UNIT_NEARBY;
|
||||
|
||||
Reference in New Issue
Block a user