mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix spacing issue and removed unnecessary spaces (#1684)
* Fix spacing issue and removed unnecessary spaces * Added spaces where suggested
This commit is contained in:
parent
0cc15411c1
commit
a5120c0a7c
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user