diff options
| author | megamage <none@none> | 2009-01-05 19:19:44 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-05 19:19:44 -0600 |
| commit | be6dddc4d59bf6c5e0a61268fb62bec4bdf32a79 (patch) | |
| tree | 615259002c054e03a0bcf0e1e93a11da10a3477a | |
| parent | cb0319382240d21381335f5d70a8dfd8bcf04feb (diff) | |
*Do not let mob flee to call help when it has AURA_PREVENTS_FLEEING.
--HG--
branch : trunk
| -rw-r--r-- | src/bindings/scripts/scripts/creature/mob_event_ai.cpp | 2 |
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; |
