Skip to content

Commit

Permalink
Protection paladins should only cast hammer of wrath on non raid scen…
Browse files Browse the repository at this point in the history
…arios to save mana
  • Loading branch information
davidonete committed Apr 12, 2024
1 parent 7f45f18 commit f5b4e35
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions playerbot/strategy/paladin/ProtectionPaladinStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ void ProtectionPaladinStrategy::InitCombatTriggers(std::list<TriggerNode*>& trig
"medium mana",
NextAction::array(0, new NextAction("seal of wisdom", ACTION_HIGH + 1), NULL)));

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));

triggers.push_back(new TriggerNode(
"exorcism",
NextAction::array(0, new NextAction("exorcism", ACTION_NORMAL + 3), NULL)));
Expand Down Expand Up @@ -103,6 +99,10 @@ void ProtectionPaladinPveStrategy::InitCombatTriggers(std::list<TriggerNode*>& t
{
ProtectionPaladinStrategy::InitCombatTriggers(triggers);
PaladinPveStrategy::InitCombatTriggers(triggers);

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));
}

void ProtectionPaladinPveStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& triggers)
Expand All @@ -127,6 +127,10 @@ void ProtectionPaladinPvpStrategy::InitCombatTriggers(std::list<TriggerNode*>& t
{
ProtectionPaladinStrategy::InitCombatTriggers(triggers);
PaladinPvpStrategy::InitCombatTriggers(triggers);

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));
}

void ProtectionPaladinPvpStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& triggers)
Expand Down Expand Up @@ -557,10 +561,6 @@ void ProtectionPaladinStrategy::InitCombatTriggers(std::list<TriggerNode*>& trig
"low mana",
NextAction::array(0, new NextAction("seal of wisdom", ACTION_HIGH + 1), NULL)));

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));

triggers.push_back(new TriggerNode(
"exorcism",
NextAction::array(0, new NextAction("exorcism", ACTION_NORMAL + 3), NULL)));
Expand Down Expand Up @@ -601,6 +601,10 @@ void ProtectionPaladinPveStrategy::InitCombatTriggers(std::list<TriggerNode*>& t
{
ProtectionPaladinStrategy::InitCombatTriggers(triggers);
PaladinPveStrategy::InitCombatTriggers(triggers);

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));
}

void ProtectionPaladinPveStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& triggers)
Expand All @@ -625,6 +629,10 @@ void ProtectionPaladinPvpStrategy::InitCombatTriggers(std::list<TriggerNode*>& t
{
ProtectionPaladinStrategy::InitCombatTriggers(triggers);
PaladinPvpStrategy::InitCombatTriggers(triggers);

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));
}

void ProtectionPaladinPvpStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& triggers)
Expand Down Expand Up @@ -1051,10 +1059,6 @@ void ProtectionPaladinStrategy::InitCombatTriggers(std::list<TriggerNode*>& trig
"low mana",
NextAction::array(0, new NextAction("seal of wisdom", ACTION_HIGH + 1), NULL)));

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));

triggers.push_back(new TriggerNode(
"exorcism",
NextAction::array(0, new NextAction("exorcism", ACTION_NORMAL + 3), NULL)));
Expand Down Expand Up @@ -1087,6 +1091,10 @@ void ProtectionPaladinPveStrategy::InitCombatTriggers(std::list<TriggerNode*>& t
{
ProtectionPaladinStrategy::InitCombatTriggers(triggers);
PaladinPveStrategy::InitCombatTriggers(triggers);

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));
}

void ProtectionPaladinPveStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& triggers)
Expand All @@ -1111,6 +1119,10 @@ void ProtectionPaladinPvpStrategy::InitCombatTriggers(std::list<TriggerNode*>& t
{
ProtectionPaladinStrategy::InitCombatTriggers(triggers);
PaladinPvpStrategy::InitCombatTriggers(triggers);

triggers.push_back(new TriggerNode(
"target critical health",
NextAction::array(0, new NextAction("hammer of wrath", ACTION_HIGH), NULL)));
}

void ProtectionPaladinPvpStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& triggers)
Expand Down

0 comments on commit f5b4e35

Please sign in to comment.