mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 15:01:38 -04:00
Core/Spells: Remove SpellSelectTargetTypes enum - it's not needed anymore.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user