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
@@ -53,8 +53,8 @@ class spell_generic_quest_update_entry_SpellScript : public SpellScript
if (!creatureTarget->IsPet() && creatureTarget->GetEntry() == _originalEntry)
{
creatureTarget->UpdateEntry(_newEntry);
if (_shouldAttack && creatureTarget->IsAIEnabled)
creatureTarget->AI()->AttackStart(GetCaster());
if (_shouldAttack)
creatureTarget->EngageWithTarget(GetCaster());
if (_despawnTime)
creatureTarget->DespawnOrUnsummon(_despawnTime);