mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-21 06:37:57 -04:00
Fix taxi window close auto-mounting player on griffin
Fixes issue where closing the flight map window would incorrectly mount the player on a griffin at spawn point. Added taxiLandingCooldown when closing taxi window to prevent UNIT_FLAG_TAXI_FLIGHT check from re-triggering mount.
This commit is contained in:
@@ -5377,6 +5377,10 @@ void GameHandler::closeTaxi() {
|
||||
// Clear any pending activation
|
||||
taxiActivatePending_ = false;
|
||||
onTaxiFlight_ = false;
|
||||
|
||||
// Set cooldown to prevent auto-mount trigger from re-applying taxi mount
|
||||
// (The UNIT_FLAG_TAXI_FLIGHT check in handleUpdateObject won't re-trigger during cooldown)
|
||||
taxiLandingCooldown_ = 2.0f;
|
||||
}
|
||||
|
||||
void GameHandler::buildTaxiCostMap() {
|
||||
|
||||
Reference in New Issue
Block a user