diff options
author | Subv2112 <s.v.h21@hotmail.com> | 2012-01-05 12:11:58 -0500 |
---|---|---|
committer | Subv2112 <s.v.h21@hotmail.com> | 2012-01-05 12:11:58 -0500 |
commit | 8197c37a92f891374760c79a2ee418bd6ec7d612 (patch) | |
tree | c4e2747bdcbe06c79235b4e50cfd16ba48f199a1 | |
parent | 16fea505c48978b388e7b6d8a9de5964f753d160 (diff) |
Vehicles with SAI should not kick their passengers when resetting
Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index af6bf6cf6ce..1755c36562f 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -436,7 +436,9 @@ void SmartAI::EnterEvadeMode() if (!me->isAlive()) return; - me->RemoveAllAuras(); + // Vehicles should not dismount their passengers on evade mode + me->RemoveAllAurasExceptType(SPELL_AURA_CONTROL_VEHICLE); + me->DeleteThreatList(); me->CombatStop(true); me->LoadCreaturesAddon(); |