Core/AI: ported charm updates from 335

This commit is contained in:
Ovahlord committed 2021-09-16 16:48:07 +02:00
1 parent 346ffe6e91
commit 949f92e0a1
125 files changed
+691 -720

No files matched your search

+2 -2
View File
@@ -1713,7 +1713,7 @@ class spell_ethereal_pet_aura : public AuraScript
GetUnitOwner()->GetAllMinionsByEntry(minionList, NPC_ETHEREAL_SOUL_TRADER);
for (Creature* minion : minionList)
{
if (minion->IsAIEnabled)
if (minion->IsAIEnabled())
{
minion->AI()->Talk(SAY_STEAL_ESSENCE);
minion->CastSpell(eventInfo.GetProcTarget(), SPELL_STEAL_ESSENCE_VISUAL);
@@ -4495,7 +4495,7 @@ class spell_gen_blink : public SpellScriptLoader
if (Unit* target = caster->GetThreatManager().GetCurrentVictim())
{
caster->GetThreatManager().ResetThreat(target);
if (caster->IsAIEnabled)
if (caster->IsAIEnabled())
{
caster->CastSpell(target, SPELL_BLINK_TARGET, true);
caster->AI()->AttackStart(target);