Core/Units: Made RemoveAllAurasExceptVehicle more generic, can now be used to remove all auras except specified type

This commit is contained in:
Shauren
2011-04-23 10:24:44 +02:00
parent 05ef35c355
commit 8dbdc15705
3 changed files with 6 additions and 9 deletions
+2 -5
View File
@@ -549,11 +549,8 @@ inline bool CreatureAI::_EnterEvadeMode()
if (!me->isAlive())
return false;
// call specialized vehicle remove auras if creature is one
if (!me->IsVehicle())
me->RemoveAllAuras();
else
me->RemoveAllAurasExceptVehicle();
// dont remove vehicle auras, passengers arent supposed to drop off the vehicle
me->RemoveAllAurasExceptType(SPELL_AURA_CONTROL_VEHICLE);
// sometimes bosses stuck in combat?
me->DeleteThreatList();