mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 08:23:48 +00:00
[HOT FIX] MS build issues regarding folder / command lenght usage or rc.exe (#2038)
This commit is contained in:
40
src/Ai/Raid/MoltenCore/Trigger/RaidMcTriggers.cpp
Normal file
40
src/Ai/Raid/MoltenCore/Trigger/RaidMcTriggers.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#include "RaidMcTriggers.h"
|
||||
|
||||
#include "SharedDefines.h"
|
||||
#include "RaidMcHelpers.h"
|
||||
|
||||
using namespace MoltenCoreHelpers;
|
||||
|
||||
bool McLivingBombDebuffTrigger::IsActive()
|
||||
{
|
||||
// No check for Baron Geddon, because bots may have the bomb even after Geddon died.
|
||||
return bot->HasAura(SPELL_LIVING_BOMB);
|
||||
}
|
||||
|
||||
bool McBaronGeddonInfernoTrigger::IsActive()
|
||||
{
|
||||
if (Unit* boss = AI_VALUE2(Unit*, "find target", "baron geddon"))
|
||||
return boss->HasAura(SPELL_INFERNO);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool McShazzrahRangedTrigger::IsActive()
|
||||
{
|
||||
return AI_VALUE2(Unit*, "find target", "shazzrah") && PlayerbotAI::IsRanged(bot);
|
||||
}
|
||||
|
||||
bool McGolemaggMarkBossTrigger::IsActive()
|
||||
{
|
||||
// any tank may mark the boss
|
||||
return AI_VALUE2(Unit*, "find target", "golemagg the incinerator") && PlayerbotAI::IsTank(bot);
|
||||
}
|
||||
|
||||
bool McGolemaggIsMainTankTrigger::IsActive()
|
||||
{
|
||||
return AI_VALUE2(Unit*, "find target", "golemagg the incinerator") && PlayerbotAI::IsMainTank(bot);
|
||||
}
|
||||
|
||||
bool McGolemaggIsAssistTankTrigger::IsActive()
|
||||
{
|
||||
return AI_VALUE2(Unit*, "find target", "golemagg the incinerator") && PlayerbotAI::IsAssistTank(bot);
|
||||
}
|
||||
Reference in New Issue
Block a user