mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
3dcd489e81
commit
0885f885e8
1 changed files with 2 additions and 0 deletions
|
|
@ -12678,6 +12678,8 @@ void GameHandler::applyUpdateObjectBlock(const UpdateBlock& block, bool& newItem
|
||||||
if (addonEventCallback_) addonEventCallback_("PLAYER_ALIVE", {});
|
if (addonEventCallback_) addonEventCallback_("PLAYER_ALIVE", {});
|
||||||
if (ghostStateCallback_) ghostStateCallback_(false);
|
if (ghostStateCallback_) ghostStateCallback_(false);
|
||||||
}
|
}
|
||||||
|
if (addonEventCallback_)
|
||||||
|
addonEventCallback_("PLAYER_FLAGS_CHANGED", {});
|
||||||
}
|
}
|
||||||
else if (ufMeleeAPV != 0xFFFF && key == ufMeleeAPV) { playerMeleeAP_ = static_cast<int32_t>(val); }
|
else if (ufMeleeAPV != 0xFFFF && key == ufMeleeAPV) { playerMeleeAP_ = static_cast<int32_t>(val); }
|
||||||
else if (ufRangedAPV != 0xFFFF && key == ufRangedAPV) { playerRangedAP_ = static_cast<int32_t>(val); }
|
else if (ufRangedAPV != 0xFFFF && key == ufRangedAPV) { playerRangedAP_ = static_cast<int32_t>(val); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue