aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/npc/npcs_special.cpp10
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;