#include "Playerbots.h" #include "AuchenaiCryptsTriggers.h" #include "AiObject.h" #include "AiObjectContext.h" // Shirrak the Dead Watcher bool ShirrakTankPositionBossTrigger::IsActive() { return botAI->IsTank(bot) && AI_VALUE2(Unit*, "find target", "shirrak the dead watcher"); } bool ShirrakFleeFocusFireTrigger::IsActive() { if (!AI_VALUE2(Unit*, "find target", "shirrak the dead watcher")) return false; std::list creatureList; bot->GetCreatureListWithEntryInGrid(creatureList, static_cast(AuchenaiCryptsIDs::NPC_FOCUS_FIRE), 20.0f); for (Creature* flare : creatureList) { if (flare && flare->IsAlive()) return true; } return false; } bool ShirrakRangedKeepDistanceTrigger::IsActive() { return botAI->IsRanged(bot) && AI_VALUE2(Unit*, "find target", "shirrak the dead watcher"); }