aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-05 19:19:44 -0600
committermegamage <none@none>2009-01-05 19:19:44 -0600
commitbe6dddc4d59bf6c5e0a61268fb62bec4bdf32a79 (patch)
tree615259002c054e03a0bcf0e1e93a11da10a3477a /src
parentcb0319382240d21381335f5d70a8dfd8bcf04feb (diff)
*Do not let mob flee to call help when it has AURA_PREVENTS_FLEEING.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/creature/mob_event_ai.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/creature/mob_event_ai.cpp b/src/bindings/scripts/scripts/creature/mob_event_ai.cpp
index a629bf7b4d8..d764fb02c2e 100644
--- a/src/bindings/scripts/scripts/creature/mob_event_ai.cpp
+++ b/src/bindings/scripts/scripts/creature/mob_event_ai.cpp
@@ -790,6 +790,8 @@ struct TRINITY_DLL_DECL Mob_EventAI : public ScriptedAI
break;
case ACTION_T_FLEE:
{
+ if(m_creature->HasAuraType(SPELL_AURA_PREVENTS_FLEEING))
+ break;
TimetoFleeLeft = 8000;
m_creature->DoFleeToGetAssistance();
IsFleeing = true;