Skip to content

Commit

Permalink
Paladin tanks should only cast consecration when multiple targets
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Mar 29, 2024
1 parent 21c6684 commit 448e33b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions playerbot/strategy/paladin/PaladinTriggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,18 @@ bool ConsecrationTrigger::IsActive()
{
if (SpellNoCooldownTrigger::IsActive())
{
if (ai->IsTank(bot) && AI_VALUE(uint8, "attackers count") < 3)
{
return false;
}
else
{
#ifdef MANGOSBOT_TWO
return true;
return true;
#else
return AI_VALUE2(uint8, "mana", "self target") > sPlayerbotAIConfig.mediumMana;
return AI_VALUE2(uint8, "mana", "self target") > sPlayerbotAIConfig.mediumMana;
#endif
}
}

return false;
Expand Down

0 comments on commit 448e33b

Please sign in to comment.