mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-11 17:12:25 +00:00
[DevTools] Fix NPC targetting dev tools display window (#2943)
This commit is contained in:
parent
26dc05c0dc
commit
a6dd65435f
@ -4261,6 +4261,10 @@ void Mob::SetTarget(Mob *mob)
|
|||||||
parse->BotHasQuestSub(EVENT_TARGET_CHANGE)
|
parse->BotHasQuestSub(EVENT_TARGET_CHANGE)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (IsClient() && CastToClient()->admin > AccountStatus::GMMgmt) {
|
||||||
|
DisplayInfo(mob);
|
||||||
|
}
|
||||||
|
|
||||||
if (has_target_change_event) {
|
if (has_target_change_event) {
|
||||||
std::vector<std::any> args;
|
std::vector<std::any> args;
|
||||||
|
|
||||||
@ -4275,10 +4279,6 @@ void Mob::SetTarget(Mob *mob)
|
|||||||
parse->EventPlayer(EVENT_TARGET_CHANGE, CastToClient(), "", 0, &args);
|
parse->EventPlayer(EVENT_TARGET_CHANGE, CastToClient(), "", 0, &args);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CastToClient()->admin > AccountStatus::GMMgmt) {
|
|
||||||
DisplayInfo(mob);
|
|
||||||
}
|
|
||||||
|
|
||||||
CastToClient()->SetBotPrecombat(false); // Any change in target will nullify this flag (target == mob checked above)
|
CastToClient()->SetBotPrecombat(false); // Any change in target will nullify this flag (target == mob checked above)
|
||||||
} else if (IsBot()) {
|
} else if (IsBot()) {
|
||||||
if (parse->BotHasQuestSub(EVENT_TARGET_CHANGE)) {
|
if (parse->BotHasQuestSub(EVENT_TARGET_CHANGE)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user