Core/Vehicles: Remove redundant Vehicle::Die. All vehicle auras are already removed on Unit::RemoveAllAurasOnDeath.

Addresses ticket:869 - please reconfirm
This commit is contained in:
Machiavelli
2011-03-06 10:31:25 +01:00
parent 13fb928d14
commit df97ce7625
5 changed files with 0 additions and 25 deletions
-2
View File
@@ -12402,8 +12402,6 @@ void Unit::setDeathState(DeathState s)
ClearDiminishings();
GetMotionMaster()->Clear(false);
GetMotionMaster()->MoveIdle();
if (m_vehicleKit)
m_vehicleKit->Die();
SendMonsterStop(true);
//without this when removing IncreaseMaxHealth aura player may stuck with 1 hp
//do not why since in IncreaseMaxHealth currenthealth is checked
@@ -141,15 +141,6 @@ void Vehicle::Uninstall()
sScriptMgr->OnUninstall(this);
}
void Vehicle::Die()
{
sLog->outDebug(LOG_FILTER_VEHICLES, "Vehicle::Die Entry: %u, GuidLow: %u", m_creatureEntry, me->GetGUIDLow());
RemoveAllPassengers();
if (GetBase()->GetTypeId() == TYPEID_UNIT)
sScriptMgr->OnDie(this);
}
void Vehicle::Reset()
{
sLog->outDebug(LOG_FILTER_VEHICLES, "Vehicle::Reset");
@@ -120,7 +120,6 @@ class Vehicle
void Install();
void Uninstall();
void Reset();
void Die();
void InstallAllAccessories();
Unit *GetBase() const { return me; }