Added some basic functionality to 'bot guard'

This commit is contained in:
Uleat
2018-02-08 16:46:43 -05:00
parent fb8873e77b
commit 0b97db9fd2
3 changed files with 54 additions and 10 deletions
+1 -7
View File
@@ -3047,13 +3047,7 @@ void bot_command_guard(Client *c, const Seperator *sep)
sbl.remove(nullptr);
for (auto bot_iter : sbl) {
bot_iter->WipeHateList();
bot_iter->SetFollowID(0);
if (!bot_iter->GetPet())
continue;
bot_iter->GetPet()->WipeHateList();
bot_iter->GetPet()->SetFollowID(0);
bot_iter->SetGuardMode();
}
if (sbl.size() == 1)
Bot::BotGroupSay(sbl.front(), "Guarding this position");