From 0885f885e859556ab299e3fa10ff34cb3bfb2f6c Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 20 Mar 2026 21:18:25 -0700 Subject: [PATCH] feat: fire PLAYER_FLAGS_CHANGED event when player flags update Fires when AFK/DND status, PvP flag, ghost state, or other player flags change via PLAYER_FLAGS update field. Enables addons that track player status changes (FlagRSP, TRP3, etc.). --- 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 751eb945..df46fc16 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -12678,6 +12678,8 @@ void GameHandler::applyUpdateObjectBlock(const UpdateBlock& block, bool& newItem if (addonEventCallback_) addonEventCallback_("PLAYER_ALIVE", {}); if (ghostStateCallback_) ghostStateCallback_(false); } + if (addonEventCallback_) + addonEventCallback_("PLAYER_FLAGS_CHANGED", {}); } else if (ufMeleeAPV != 0xFFFF && key == ufMeleeAPV) { playerMeleeAP_ = static_cast(val); } else if (ufRangedAPV != 0xFFFF && key == ufRangedAPV) { playerRangedAP_ = static_cast(val); }