Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans

(cherry picked from commit 042f5515e4f3e52b0d2e23d9b9e147041849ce12)
This commit is contained in:
Treeston
2021-10-22 23:47:51 +02:00
committed by Shauren
parent 6a91fe3fbe
commit e4e8c1c59c
67 changed files with 310 additions and 395 deletions
@@ -47,7 +47,7 @@ void SummonList::DoZoneInCombat(uint32 entry)
{
Creature* summon = ObjectAccessor::GetCreature(*me, *i);
++i;
if (summon && summon->IsAIEnabled
if (summon && summon->IsAIEnabled()
&& (!entry || summon->GetEntry() == entry))
{
summon->AI()->DoZoneInCombat(nullptr);
@@ -111,7 +111,7 @@ void SummonList::DoActionImpl(int32 action, StorageType const& summons)
for (auto const& guid : summons)
{
Creature* summon = ObjectAccessor::GetCreature(*me, guid);
if (summon && summon->IsAIEnabled)
if (summon && summon->IsAIEnabled())
summon->AI()->DoAction(action);
}
}