From 1bd37790b564be487ed16ae897484a4d8c80a2de Mon Sep 17 00:00:00 2001 From: gvcoman Date: Fri, 21 Nov 2008 19:12:44 -0500 Subject: Added SetAggressive calls to steam tonk and tonk mine scripts. --HG-- branch : trunk --- src/bindings/scripts/scripts/npc/npcs_special.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/npc/npcs_special.cpp b/src/bindings/scripts/scripts/npc/npcs_special.cpp index 61091ab54e2..ae23ea38f32 100644 --- a/src/bindings/scripts/scripts/npc/npcs_special.cpp +++ b/src/bindings/scripts/scripts/npc/npcs_special.cpp @@ -839,7 +839,11 @@ struct TRINITY_DLL_DECL npc_steam_tonkAI : public ScriptedAI // Initialize the action bar without the melee attack command m_creature->InitCharmInfo(m_creature); m_creature->GetCharmInfo()->InitEmptyActionBar(false); + + m_creature->SetAggressive(false); } + else + m_creature->SetAggressive(true); } }; @@ -853,7 +857,11 @@ CreatureAI* GetAI_npc_steam_tonk(Creature *_Creature) struct TRINITY_DLL_DECL npc_tonk_mineAI : public ScriptedAI { - npc_tonk_mineAI(Creature *c) : ScriptedAI(c) {Reset();} + npc_tonk_mineAI(Creature *c) : ScriptedAI(c) + { + m_creature->SetAggressive(false); + Reset(); + } uint32 ExplosionTimer; -- cgit v1.2.3