paladin buff strategy

This commit is contained in:
Yunfan Li
2023-07-15 15:10:18 +08:00
parent 071e9e6a49
commit 263651720f
5 changed files with 84 additions and 14 deletions

View File

@@ -5,6 +5,7 @@
#include "PaladinActions.h"
#include "Event.h"
#include "Playerbots.h"
#include "SharedDefines.h"
inline std::string const GetActualBlessingOfMight(Unit* target)
{
@@ -25,6 +26,7 @@ inline std::string const GetActualBlessingOfWisdom(Unit* target)
{
case CLASS_WARRIOR:
case CLASS_ROGUE:
case CLASS_DEATH_KNIGHT:
return "blessing of might";
}
@@ -33,7 +35,7 @@ inline std::string const GetActualBlessingOfWisdom(Unit* target)
Value<Unit*>* CastBlessingOnPartyAction::GetTargetValue()
{
return context->GetValue<Unit*>("party member without aura", "blessing of kings,blessing of might,blessing of wisdom");
return context->GetValue<Unit*>("party member without aura", name);
}
bool CastBlessingOfMightAction::Execute(Event event)
@@ -45,6 +47,12 @@ bool CastBlessingOfMightAction::Execute(Event event)
return botAI->CastSpell(GetActualBlessingOfMight(target), target);
}
Value<Unit*>* CastBlessingOfMightOnPartyAction::GetTargetValue()
{
return context->GetValue<Unit*>("party member without aura", "blessing of might,blessing of wisdom");
}
bool CastBlessingOfMightOnPartyAction::Execute(Event event)
{
Unit* target = GetTarget();
@@ -63,6 +71,11 @@ bool CastBlessingOfWisdomAction::Execute(Event event)
return botAI->CastSpell(GetActualBlessingOfWisdom(target), target);
}
Value<Unit*>* CastBlessingOfWisdomOnPartyAction::GetTargetValue()
{
return context->GetValue<Unit*>("party member without aura", "blessing of might,blessing of wisdom");
}
bool CastBlessingOfWisdomOnPartyAction::Execute(Event event)
{
Unit* target = GetTarget();