mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-17 18:02:26 +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)
|
||||
);
|
||||
|
||||
if (IsClient() && CastToClient()->admin > AccountStatus::GMMgmt) {
|
||||
DisplayInfo(mob);
|
||||
}
|
||||
|
||||
if (has_target_change_event) {
|
||||
std::vector<std::any> args;
|
||||
|
||||
@ -4275,10 +4279,6 @@ void Mob::SetTarget(Mob *mob)
|
||||
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)
|
||||
} else if (IsBot()) {
|
||||
if (parse->BotHasQuestSub(EVENT_TARGET_CHANGE)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user