Core/AI: ported charm updates from 335
This commit is contained in:
1 parent
346ffe6e91
commit
949f92e0a1
125 files changed
+691
-720
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user