[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
+17
View File
@@ -12380,6 +12380,23 @@ bool Bot::BotPassiveCheck() {
return false;
}
bool Bot::ValidStateCheck(Mob* other, bool same_raid_group) {
if (
GetBotStance() == Stance::Passive ||
GetHoldFlag() ||
GetAppearance() == eaDead ||
IsFeared() ||
IsSilenced() ||
IsAmnesiad() ||
GetHP() < 0 ||
!IsInGroupOrRaid(other, same_raid_group)
) {
return false;
}
return true;
}
bool Bot::IsValidSpellTypeSubType(uint16 spell_type, uint16 sub_type, uint16 spell_id) {
if (sub_type == UINT16_MAX) {
return true;