mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Prayer of Fortitude
This commit is contained in:
@@ -105,4 +105,21 @@ Unit* CastPowerWordShieldOnNotFullAction::GetTarget()
|
||||
bool CastPowerWordShieldOnNotFullAction::isUseful()
|
||||
{
|
||||
return GetTarget();
|
||||
}
|
||||
}
|
||||
|
||||
bool CastPowerWordFortitudeAction::Execute(Event event)
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
if (!target)
|
||||
return false;
|
||||
|
||||
// If in a group, try Prayer first
|
||||
Group* group = botAI->GetBot()->GetGroup();
|
||||
if (group && botAI->CanCastSpell("prayer of fortitude", target))
|
||||
{
|
||||
return botAI->CastSpell("prayer of fortitude", target);
|
||||
}
|
||||
|
||||
// Otherwise do normal single-target
|
||||
return botAI->CastSpell("power word: fortitude", target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user