From 9b2f1003875f85e256f5825f0c732f65c16be43e Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 21 Mar 2026 09:53:32 -0700 Subject: [PATCH] feat: fire UNIT_MODEL_CHANGED on mount display changes Fire UNIT_MODEL_CHANGED for the player when mount display ID changes (mounting or dismounting). Mount addons and portrait addons now get notified when the player's visual model switches between ground and mounted form. --- src/game/game_handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 1a2519fc..0e2d5117 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -11964,6 +11964,8 @@ void GameHandler::applyUpdateObjectBlock(const UpdateBlock& block, bool& newItem uint32_t old = currentMountDisplayId_; currentMountDisplayId_ = val; if (val != old && mountCallback_) mountCallback_(val); + if (val != old && addonEventCallback_) + addonEventCallback_("UNIT_MODEL_CHANGED", {"player"}); if (old == 0 && val != 0) { // Just mounted — find the mount aura (indefinite duration, self-cast) mountAuraSpellId_ = 0;