Core/Unit: Do not remove auras from Pets and Guardians after evading

This commit is contained in:
Aokromes committed 2016-07-19 16:21:41 +02:00
1 parent 28a7ce2007
commit 6e68a60e6d
4 files changed
+13 -4

No files matched your search

+10
View File
@@ -3960,6 +3960,16 @@ void Unit::RemoveArenaAuras()
}
}
void Unit::RemoveAurasOnEvade()
{
if (IsCharmedOwnedByPlayerOrPlayer()) // if it is a player owned creature it should not remove the aura
return;
// don't remove vehicle auras, passengers aren't supposed to drop off the vehicle
// don't remove clone caster on evade (to be verified)
RemoveAllAurasExceptType(SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_CLONE_CASTER);
}
void Unit::RemoveAllAurasOnDeath()
{
// used just after dieing to remove all visible auras