fix(Scripts/Northrend): Drakkensryd reliable passenger install (#25387)

Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
Co-authored-by: Ryan Turner <16946913+TheSCREWEDSoftware@users.noreply.github.com>
This commit is contained in:
sogladev 2026-04-25 14:19:57 +02:00 committed by GitHub
parent 096db2f45b
commit 92a9146f11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -561,7 +561,10 @@ struct npc_hyldsmeet_protodrake : public CreatureAI
//! We need to manually reinstall accessories because the vehicle itself is friendly to players,
//! so EnterEvadeMode is never triggered. The accessory on the other hand is hostile and killable.
Vehicle* vehicleKit = me->GetVehicleKit();
if (_accessoryRespawnTimer && _accessoryRespawnTimer <= diff && vehicleKit)
if (!vehicleKit || !_accessoryRespawnTimer)
return;
if (_accessoryRespawnTimer <= diff)
{
vehicleKit->InstallAllAccessories(true);
_accessoryRespawnTimer = 0;