Fix spacing issue and removed unnecessary spaces (#1684)

* Fix spacing issue and removed unnecessary spaces

* Added spaces where suggested
This commit is contained in:
Revision
2025-09-30 15:25:53 +02:00
committed by GitHub
parent 0cc15411c1
commit a5120c0a7c
2 changed files with 111 additions and 108 deletions

View File

@@ -34,6 +34,7 @@ namespace ai::buff
if (name == "arcane intellect") return "arcane intellect,arcane brilliance"; if (name == "arcane intellect") return "arcane intellect,arcane brilliance";
// Priest // Priest
if (name == "power word: fortitude") return "power word: fortitude,prayer of fortitude"; if (name == "power word: fortitude") return "power word: fortitude,prayer of fortitude";
return name; return name;
} }
@@ -60,7 +61,8 @@ namespace ai::buff
return false; return false;
if (SpellInfo const* info = sSpellMgr->GetSpellInfo(spellId)) if (SpellInfo const* info = sSpellMgr->GetSpellInfo(spellId))
{ for (int i = 0; i < MAX_SPELL_REAGENTS; ++i) {
for (int i = 0; i < MAX_SPELL_REAGENTS; ++i)
{ {
if (info->Reagent[i] > 0) if (info->Reagent[i] > 0)
{ {
@@ -83,7 +85,8 @@ namespace ai::buff
bool announceOnMissing, bool announceOnMissing,
std::function<void(std::string const&)> announce) std::function<void(std::string const&)> announce)
{ {
std::string castName = baseName; Group* g = bot->GetGroup(); std::string castName = baseName;
Group* g = bot->GetGroup();
if (!g || g->GetMembersCount() < static_cast<uint32>(sPlayerbotAIConfig->minBotsForGreaterBuff)) if (!g || g->GetMembersCount() < static_cast<uint32>(sPlayerbotAIConfig->minBotsForGreaterBuff))
return castName; // Group too small: stay in solo mode return castName; // Group too small: stay in solo mode