mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00: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:
parent
42821604d3
commit
e40ea0c47a
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue