mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Vehicles: Do not call InstallAllAccessories for dead Vehicles (#20033)
(cherry picked from commit 551d0559aa)
This commit is contained in:
@@ -147,7 +147,8 @@ void Vehicle::Reset(bool evading /*= false*/)
|
||||
TC_LOG_DEBUG("entities.vehicle", "Vehicle::Reset (Entry: %u, %s, DBGuid: " UI64FMTD ")", GetCreatureEntry(), _me->GetGUID().ToString().c_str(), _me->ToCreature()->GetSpawnId());
|
||||
|
||||
ApplyAllImmunities();
|
||||
InstallAllAccessories(evading);
|
||||
if (GetBase()->IsAlive())
|
||||
InstallAllAccessories(evading);
|
||||
|
||||
sScriptMgr->OnReset(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user