mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-17 18:55:41 +00:00
Revert "Paladins use Greater Blessings"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,6 @@ class CastArcaneIntellectOnPartyAction : public BuffOnPartyAction
|
||||
{
|
||||
public:
|
||||
CastArcaneIntellectOnPartyAction(PlayerbotAI* botAI) : BuffOnPartyAction(botAI, "arcane intellect") {}
|
||||
bool Execute(Event event) override;
|
||||
};
|
||||
|
||||
class CastRemoveCurseAction : public CastCureSpellAction
|
||||
|
||||
@@ -10,16 +10,12 @@
|
||||
|
||||
bool ArcaneIntellectOnPartyTrigger::IsActive()
|
||||
{
|
||||
return BuffOnPartyTrigger::IsActive() &&
|
||||
!botAI->HasAnyAuraOf(GetTarget(), "arcane brilliance", "arcane intellect", "dalaran brilliance",
|
||||
"dalaran intellect", nullptr);
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("arcane brilliance", GetTarget());
|
||||
}
|
||||
|
||||
bool ArcaneIntellectTrigger::IsActive()
|
||||
{
|
||||
return BuffTrigger::IsActive() &&
|
||||
!botAI->HasAnyAuraOf(GetTarget(), "arcane brilliance", "arcane intellect", "dalaran brilliance",
|
||||
"dalaran intellect", nullptr);
|
||||
return BuffTrigger::IsActive() && !botAI->HasAura("arcane brilliance", GetTarget());
|
||||
}
|
||||
|
||||
bool MageArmorTrigger::IsActive()
|
||||
|
||||
Reference in New Issue
Block a user