[Bots] Add IsInRaidOrGroup checks to ^attack and ^pull (#4654)

This commit is contained in:
nytmyr
2025-02-07 13:05:55 -06:00
committed by GitHub
parent ed7023f336
commit 41009aa19b
7 changed files with 47 additions and 42 deletions
+1 -5
View File
@@ -141,11 +141,7 @@ void bot_command_depart(Client* c, const Seperator* sep)
std::map<std::string, std::pair<uint8_t, uint8_t>> list_zones;
for (auto bot_iter : sbl) {
if (!bot_iter->IsInGroupOrRaid(tar, !single)) {
continue;
}
if (bot_iter->GetBotStance() == Stance::Passive || bot_iter->GetHoldFlag() || bot_iter->GetAppearance() == eaDead || bot_iter->IsFeared() || bot_iter->IsSilenced() || bot_iter->IsAmnesiad() || bot_iter->GetHP() < 0) {
if (!bot_iter->ValidStateCheck(c)) {
continue;
}