*Fix the bug that all vehicles are broken.
--HG-- branch : trunk
This commit is contained in:
1 parent
e20e65ced9
commit
297498f1f7
6 files changed
+9
-15
No files matched your search
+2
-2
@@ -10206,7 +10206,7 @@ void Unit::setDeathState(DeathState s)
|
||||
UnsummonAllTotems();
|
||||
RemoveAllControlled();
|
||||
RemoveAllAurasOnDeath();
|
||||
if(m_Vehicle) m_Vehicle->RemovePassenger(this);
|
||||
ExitVehicle();
|
||||
//This is needed to clear visible auras after unit dies
|
||||
|
||||
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
|
||||
@@ -11172,7 +11172,7 @@ void Unit::RemoveFromWorld()
|
||||
RemoveCharmAuras();
|
||||
RemoveBindSightAuras();
|
||||
RemoveNotOwnSingleTargetAuras();
|
||||
if(m_Vehicle) m_Vehicle->RemovePassenger(this);
|
||||
ExitVehicle();
|
||||
|
||||
if(GetCharmerGUID())
|
||||
sLog.outCrash("Unit %u has charmer guid when removed from world", GetEntry());
|
||||
|
||||
Reference in new issue
Block a user