mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
23 lines
719 B
C++
23 lines
719 B
C++
#include "RaidMcTriggers.h"
|
|
|
|
#include "SharedDefines.h"
|
|
|
|
bool McLivingBombDebuffTrigger::IsActive()
|
|
{
|
|
// if bot has barron geddon's living bomb, we need to add strat, otherwise we need to remove
|
|
// only do when fighting baron geddon (to avoid modifying strat set by player outside this fight)
|
|
if (Unit* boss = AI_VALUE2(Unit*, "find target", "baron geddon"))
|
|
{
|
|
if (boss->IsInCombat())
|
|
return bot->HasAura(20475) != botAI->HasStrategy("move from group", BotState::BOT_STATE_COMBAT);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool McBaronGeddonInfernoTrigger::IsActive()
|
|
{
|
|
if (Unit* boss = AI_VALUE2(Unit*, "find target", "baron geddon"))
|
|
return boss->HasAura(19695);
|
|
return false;
|
|
}
|