mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Prayer of Fortitude
This commit is contained in:
parent
9acf163564
commit
4eb302b95e
@ -106,3 +106,20 @@ 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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user