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.).
This commit is contained in:
Kelsi 2026-03-20 21:18:25 -07:00
parent 3dcd489e81
commit 0885f885e8

View file

@ -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<int32_t>(val); }
else if (ufRangedAPV != 0xFFFF && key == ufRangedAPV) { playerRangedAP_ = static_cast<int32_t>(val); }