Core/Spells: Remove SpellSelectTargetTypes enum - it's not needed anymore.

This commit is contained in:
QAston
2012-02-25 14:05:47 +01:00
parent c952c7f98f
commit a0de042efe
5 changed files with 6 additions and 183 deletions
+1 -6
View File
@@ -13903,12 +13903,7 @@ void CharmInfo::InitCharmCreateSpells()
newstate = ACT_PASSIVE;
else
{
bool autocast = false;
for (uint32 i = 0; i < MAX_SPELL_EFFECTS && !autocast; ++i)
if (spellInfo->Effects[i].TargetA.GetType() == TARGET_TYPE_UNIT_TARGET)
autocast = true;
if (autocast)
if (spellInfo->NeedsExplicitUnitTarget())
{
newstate = ACT_ENABLED;
ToggleCreatureAutocast(spellInfo, true);