This commit is contained in:
Yunfan Li
2023-10-25 20:29:32 +08:00
parent b16c104ba7
commit 10462126b4
7 changed files with 14 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
#include "HunterActions.h"
#include "Playerbots.h"
#include "ServerFacade.h"
#include "SharedDefines.h"
bool HunterAspectOfTheHawkTrigger::IsActive()
{
@@ -77,3 +78,9 @@ bool SwitchToMeleeTrigger::IsActive()
return botAI->HasStrategy("ranged", BOT_STATE_COMBAT) && target && (target->GetVictim() == bot &&
sServerFacade->IsDistanceLessOrEqualThan(AI_VALUE2(float, "distance", "current target"), 8.0f));
}
bool TargetRemoveEnrageTrigger::IsActive()
{
Unit* target = GetTarget();
return target && (botAI->HasAuraToDispel(target, DISPEL_ENRAGE) || botAI->HasAuraToDispel(target, DISPEL_MAGIC));
}