Skip to content

Commit

Permalink
Add holy paladin heals on non combat strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Apr 9, 2024
1 parent 11e4915 commit f01c9ce
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions playerbot/strategy/paladin/HolyPaladinStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@ void HolyPaladinStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& trigger
triggers.push_back(new TriggerNode(
"party member low health",
NextAction::array(0, new NextAction("holy light on party", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"medium health",
NextAction::array(0, new NextAction("flash of light", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"party member medium health",
NextAction::array(0, new NextAction("flash of light on party", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"almost full health",
NextAction::array(0, new NextAction("flash of light", ACTION_LIGHT_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"party member almost full health",
NextAction::array(0, new NextAction("flash of light on party", ACTION_LIGHT_HEAL), NULL)));
}

void HolyPaladinStrategy::InitReactionTriggers(std::list<TriggerNode*>& triggers)
Expand Down Expand Up @@ -569,6 +585,22 @@ void HolyPaladinStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& trigger
triggers.push_back(new TriggerNode(
"party member low health",
NextAction::array(0, new NextAction("holy light on party", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"medium health",
NextAction::array(0, new NextAction("flash of light", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"party member medium health",
NextAction::array(0, new NextAction("flash of light on party", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"almost full health",
NextAction::array(0, new NextAction("flash of light", ACTION_LIGHT_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"party member almost full health",
NextAction::array(0, new NextAction("flash of light on party", ACTION_LIGHT_HEAL), NULL)));
}

void HolyPaladinStrategy::InitReactionTriggers(std::list<TriggerNode*>& triggers)
Expand Down Expand Up @@ -1068,6 +1100,22 @@ void HolyPaladinStrategy::InitNonCombatTriggers(std::list<TriggerNode*>& trigger
triggers.push_back(new TriggerNode(
"party member low health",
NextAction::array(0, new NextAction("holy light on party", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"medium health",
NextAction::array(0, new NextAction("flash of light", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"party member medium health",
NextAction::array(0, new NextAction("flash of light on party", ACTION_MEDIUM_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"almost full health",
NextAction::array(0, new NextAction("flash of light", ACTION_LIGHT_HEAL), NULL)));

triggers.push_back(new TriggerNode(
"party member almost full health",
NextAction::array(0, new NextAction("flash of light on party", ACTION_LIGHT_HEAL), NULL)));
}

void HolyPaladinStrategy::InitReactionTriggers(std::list<TriggerNode*>& triggers)
Expand Down

0 comments on commit f01c9ce

Please sign in to comment.