mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Modified bot command 'pull' to ignore engaged targets
This commit is contained in:
parent
72f4f10dbb
commit
7678a905c8
@ -2825,7 +2825,7 @@ void Bot::AI_Process()
|
||||
|
||||
return;
|
||||
}
|
||||
else if (HasTargetReflection()) {
|
||||
else if (GetTarget()->GetHateList().size()) {
|
||||
|
||||
WipeHateList();
|
||||
SetTarget(nullptr);
|
||||
|
||||
@ -4264,6 +4264,12 @@ void bot_command_pull(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
if (target_mob->IsNPC() && target_mob->GetHateList().size()) {
|
||||
|
||||
c->Message(m_fail, "Your current target is already engaged!");
|
||||
return;
|
||||
}
|
||||
|
||||
Bot* bot_puller = nullptr;
|
||||
for (auto bot_iter : sbl) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user