mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 04:01:29 +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;
|
return;
|
||||||
}
|
}
|
||||||
else if (HasTargetReflection()) {
|
else if (GetTarget()->GetHateList().size()) {
|
||||||
|
|
||||||
WipeHateList();
|
WipeHateList();
|
||||||
SetTarget(nullptr);
|
SetTarget(nullptr);
|
||||||
|
|||||||
@ -4264,6 +4264,12 @@ void bot_command_pull(Client *c, const Seperator *sep)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target_mob->IsNPC() && target_mob->GetHateList().size()) {
|
||||||
|
|
||||||
|
c->Message(m_fail, "Your current target is already engaged!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Bot* bot_puller = nullptr;
|
Bot* bot_puller = nullptr;
|
||||||
for (auto bot_iter : sbl) {
|
for (auto bot_iter : sbl) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user