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

@@ -78,25 +78,4 @@ Unit* CastRejuvenationOnNotFullAction::GetTarget()
bool CastRejuvenationOnNotFullAction::isUseful()
{
return GetTarget();
}
bool CastMarkOfTheWildOnPartyAction::Execute(Event event)
{
Unit* target = GetTarget();
if (!target)
return false;
// Is the bot in a group?
Group* group = botAI->GetBot()->GetGroup();
if (group)
{
// If the bot can cast "gift of the wild" on this target, do so
if (botAI->CanCastSpell("gift of the wild", target))
{
return botAI->CastSpell("gift of the wild", target);
}
}
// Otherwise, fall back to single-target "mark of the wild"
return botAI->CastSpell("mark of the wild", target);
}
}