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

This commit is contained in:
nytmyr authored and GitHub committed 2025-02-07 14:05:55 -05:00
1 parent ed7023f336
commit 41009aa19b
7 files changed
+47 -42

No files matched your search

+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;