mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Revert "Paladins use Greater Blessings"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -95,9 +95,7 @@ public:
|
||||
class CastMarkOfTheWildOnPartyAction : public BuffOnPartyAction
|
||||
{
|
||||
public:
|
||||
CastMarkOfTheWildOnPartyAction(PlayerbotAI* botAI) : BuffOnPartyAction(botAI, "gift of the wild") {}
|
||||
|
||||
bool Execute(Event event) override;
|
||||
CastMarkOfTheWildOnPartyAction(PlayerbotAI* botAI) : BuffOnPartyAction(botAI, "mark of the wild") {}
|
||||
};
|
||||
|
||||
class CastSurvivalInstinctsAction : public CastBuffSpellAction
|
||||
|
||||
@@ -9,16 +9,12 @@
|
||||
|
||||
bool MarkOfTheWildOnPartyTrigger::IsActive()
|
||||
{
|
||||
// Check both Gift & Mark auras
|
||||
return BuffOnPartyTrigger::IsActive() &&
|
||||
!botAI->HasAnyAuraOf(GetTarget(), "gift of the wild", "mark of the wild", nullptr);
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("gift of the wild", GetTarget());
|
||||
}
|
||||
|
||||
bool MarkOfTheWildTrigger::IsActive()
|
||||
{
|
||||
// Same check for single-target scenario
|
||||
return BuffTrigger::IsActive() &&
|
||||
!botAI->HasAnyAuraOf(GetTarget(), "gift of the wild", "mark of the wild", nullptr);
|
||||
return BuffTrigger::IsActive() && !botAI->HasAura("gift of the wild", GetTarget());
|
||||
}
|
||||
|
||||
bool ThornsOnPartyTrigger::IsActive()
|
||||
|
||||
Reference in New Issue
Block a user