Revert "Paladins use Greater Blessings"

This commit is contained in:
Yunfan Li
2025-01-04 21:24:12 +08:00
committed by GitHub
parent 7c8c20b365
commit b0b3fef222
18 changed files with 10 additions and 719 deletions

View File

@@ -21,24 +21,3 @@ bool CastConeOfColdAction::isUseful()
bool targetClose = sServerFacade->IsDistanceLessOrEqualThan(AI_VALUE2(float, "distance", GetTargetName()), 10.f);
return facingTarget && targetClose;
}
bool CastArcaneIntellectOnPartyAction::Execute(Event event)
{
Unit* target = GetTarget();
if (!target)
return false;
Group* group = botAI->GetBot()->GetGroup();
if (group)
{
if (botAI->CanCastSpell("dalaran brilliance", target))
return botAI->CastSpell("dalaran brilliance", target);
if (botAI->CanCastSpell("arcane brilliance", target))
return botAI->CastSpell("arcane brilliance", target);
}
// If not in a group or we cannot cast brilliance, fall back to arcane intellect
return botAI->CastSpell("arcane intellect", target);
}