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