Core/Spells: Update some targeting related attribute definitions to make them more clear and consistent.
This commit is contained in:
@@ -144,7 +144,7 @@ void UnitAI::DoCast(uint32 spellId)
|
||||
case AITARGET_ENEMY:
|
||||
{
|
||||
const SpellInfo * spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR3_PLAYERS_ONLY;
|
||||
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR3_ONLY_TARGET_PLAYERS;
|
||||
//float range = GetSpellMaxRange(spellInfo, false);
|
||||
target = SelectTarget(SELECT_TARGET_RANDOM, 0, spellInfo->GetMaxRange(false), playerOnly);
|
||||
break;
|
||||
@@ -154,7 +154,7 @@ void UnitAI::DoCast(uint32 spellId)
|
||||
case AITARGET_DEBUFF:
|
||||
{
|
||||
const SpellInfo * spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR3_PLAYERS_ONLY;
|
||||
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR3_ONLY_TARGET_PLAYERS;
|
||||
float range = spellInfo->GetMaxRange(false);
|
||||
|
||||
DefaultTargetSelector targetSelector(me, range, playerOnly, -(int32)spellId);
|
||||
|
||||
Reference in New Issue
Block a user