mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: fire AUTOFOLLOW_BEGIN and AUTOFOLLOW_END events
Fire AUTOFOLLOW_BEGIN when the player starts following another unit via /follow. Fire AUTOFOLLOW_END when following is cancelled. Used by movement addons and AFK detection addons.
This commit is contained in:
parent
1f6865afce
commit
be841fb3e1
1 changed files with 2 additions and 0 deletions
|
|
@ -14148,6 +14148,7 @@ void GameHandler::followTarget() {
|
|||
|
||||
addSystemChatMessage("Now following " + targetName + ".");
|
||||
LOG_INFO("Following target: ", targetName, " (GUID: 0x", std::hex, targetGuid, std::dec, ")");
|
||||
if (addonEventCallback_) addonEventCallback_("AUTOFOLLOW_BEGIN", {});
|
||||
}
|
||||
|
||||
void GameHandler::cancelFollow() {
|
||||
|
|
@ -14157,6 +14158,7 @@ void GameHandler::cancelFollow() {
|
|||
}
|
||||
followTargetGuid_ = 0;
|
||||
addSystemChatMessage("You stop following.");
|
||||
if (addonEventCallback_) addonEventCallback_("AUTOFOLLOW_END", {});
|
||||
}
|
||||
|
||||
void GameHandler::assistTarget() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue