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
+7 -7
View File
@@ -7166,7 +7166,7 @@ bool Bot::CheckLoreConflict(const EQ::ItemData* item) {
bool EntityList::Bot_AICheckCloseBeneficialSpells(Bot* caster, uint8 iChance, uint16 spellType) {
if (BOT_SPELL_TYPES_DETRIMENTAL(spellType, caster->GetClass())) {
if (IsBotSpellTypeDetrimental(spellType, caster->GetClass())) {
LogError("[EntityList::Bot_AICheckCloseBeneficialSpells] detrimental spells requested");
return false;
}
@@ -10258,7 +10258,7 @@ void Bot::SetBotSpellRecastTimer(uint16 spellType, Mob* tar, bool preCast) {
return;
}
if (!preCast && BOT_SPELL_TYPES_OTHER_BENEFICIAL(spellType)) {
if (!preCast && IsBotSpellTypeOtherBeneficial(spellType)) {
return;
}
@@ -10276,7 +10276,7 @@ void Bot::SetBotSpellRecastTimer(uint16 spellType, Mob* tar, bool preCast) {
if (tar->IsPet() && tar->GetOwner() && tar->GetOwner()->IsOfClientBot()) {
return tar->GetOwner()->SetSpellTypeRecastTimer(spellType, (GetUltimateSpellDelay(spellType, tar) + addedDelay));
}
else if (BOT_SPELL_TYPES_OTHER_BENEFICIAL(spellType)) {
else if (IsBotSpellTypeOtherBeneficial(spellType)) {
tar->SetSpellTypeRecastTimer(spellType, (GetUltimateSpellDelay(spellType, tar) + addedDelay));
}
else {
@@ -10407,7 +10407,7 @@ uint16 Bot::GetDefaultSpellTypePriority(uint16 spellType, uint8 priorityType, ui
}
uint16 Bot::GetDefaultSpellTypeIdlePriority(uint16 spellType, uint8 botClass, uint8 stance) {
if (!BOT_SPELL_TYPES_BENEFICIAL(spellType, botClass)) {
if (!IsBotSpellTypeBeneficial(spellType, botClass)) {
return 0;
}
@@ -10669,7 +10669,7 @@ uint16 Bot::GetDefaultSpellTypePursuePriority(uint16 spellType, uint8 botClass,
uint16 Bot::GetDefaultSpellTypeResistLimit(uint16 spellType, uint8 stance) {
if (!BOT_SPELL_TYPES_BENEFICIAL(spellType, GetClass())) {
if (!IsBotSpellTypeBeneficial(spellType, GetClass())) {
return RuleI(Bots, SpellResistLimit);
}
else {
@@ -10924,7 +10924,7 @@ bool Bot::AttemptAICastSpell(uint16 spellType) {
return result;
}
if (BOT_SPELL_TYPES_BENEFICIAL(spellType, GetClass())) {
if (IsBotSpellTypeBeneficial(spellType, GetClass())) {
if (!PrecastChecks(this, spellType) || !AICastSpell(this, GetChanceToCastBySpellType(spellType), spellType)) {
if (GetClass() == Class::Bard) {
return result;
@@ -11337,7 +11337,7 @@ bool Bot::RequiresLoSForPositioning() {
}
for (uint16 i = BotSpellTypes::START; i <= BotSpellTypes::END; ++i) {
if (BOT_SPELL_TYPES_DETRIMENTAL(i) && !GetSpellHold(i)) {
if (IsBotSpellTypeDetrimental(i) && !GetSpellHold(i)) {
return true;
}
}