Core/Spells: Update some targeting related attribute definitions to make them more clear and consistent.

This commit is contained in:
QAston
2011-08-16 16:06:21 +02:00
parent 8ae5750c15
commit 73bbc3aca8
7 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -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);