diff options
author | gvcoman <none@none> | 2008-11-21 19:12:44 -0500 |
---|---|---|
committer | gvcoman <none@none> | 2008-11-21 19:12:44 -0500 |
commit | 1bd37790b564be487ed16ae897484a4d8c80a2de (patch) | |
tree | c5a2aab736364db4526ea8bc8c5b845e9188c5d2 /src | |
parent | ae8a27bbb758dd2485d9bea14ccd8b892f626371 (diff) |
Added SetAggressive calls to steam tonk and tonk mine scripts.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/npc/npcs_special.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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;
|