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:
parent
096db2f45b
commit
92a9146f11
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue