mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/Northrend): Drakkensryd reliable passenger install (#25387)
Co-authored-by: Andrew <[email protected]> Co-authored-by: Ryan Turner <[email protected]>
This commit is contained in:
co-authored by
Andrew
Ryan Turner
parent
096db2f45b
commit
92a9146f11
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user