rename BOT_SPELL_TYPE functions

This commit is contained in:
nytmyr
2024-12-01 23:33:21 -06:00
parent 3034bd5762
commit a22502a13d
7 changed files with 28 additions and 28 deletions
+4 -4
View File
@@ -339,7 +339,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
break;
default:
if (
(BOT_SPELL_TYPES_DETRIMENTAL(spellType) && !c->IsAttackAllowed(tar)) ||
(IsBotSpellTypeDetrimental(spellType) && !c->IsAttackAllowed(tar)) ||
(
spellType == BotSpellTypes::Charm &&
(
@@ -354,7 +354,7 @@ void bot_command_cast(Client* c, const Seperator* sep)
return;
}
if (BOT_SPELL_TYPES_BENEFICIAL(spellType)) {
if (IsBotSpellTypeBeneficial(spellType)) {
if (
(!tar->IsOfClientBot() && !(tar->IsPet() && tar->GetOwner() && tar->GetOwner()->IsOfClientBot())) ||
((tar->IsOfClientBot() && !c->IsInGroupOrRaid(tar)) || (tar->GetOwner() && tar->GetOwner()->IsOfClientBot() && !c->IsInGroupOrRaid(tar->GetOwner())))
@@ -418,14 +418,14 @@ void bot_command_cast(Client* c, const Seperator* sep)
}
if (
BOT_SPELL_TYPES_BENEFICIAL(spellType) &&
IsBotSpellTypeBeneficial(spellType) &&
!RuleB(Bots, CrossRaidBuffingAndHealing) &&
!bot_iter->IsInGroupOrRaid(newTar, true)
) {
continue;
}
if (BOT_SPELL_TYPES_DETRIMENTAL(spellType, bot_iter->GetClass()) && !bot_iter->IsAttackAllowed(newTar)) {
if (IsBotSpellTypeDetrimental(spellType, bot_iter->GetClass()) && !bot_iter->IsAttackAllowed(newTar)) {
bot_iter->BotGroupSay(
bot_iter,
fmt::format(