mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-17 18:55:41 +00:00
25 lines
631 B
C++
25 lines
631 B
C++
#include "RaidBwlTriggers.h"
|
|
|
|
#include "SharedDefines.h"
|
|
|
|
bool BwlSuppressionDeviceTrigger::IsActive()
|
|
{
|
|
GuidVector gos = AI_VALUE(GuidVector, "nearest game objects");
|
|
for (GuidVector::iterator i = gos.begin(); i != gos.end(); i++)
|
|
{
|
|
GameObject* go = botAI->GetGameObject(*i);
|
|
if (!go)
|
|
{
|
|
continue;
|
|
}
|
|
if (go->GetEntry() != 179784 || go->GetDistance(bot) >= 15.0f || go->GetGoState() != GO_STATE_READY)
|
|
{
|
|
continue;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool BwlAfflictionBronzeTrigger::IsActive() { return bot->HasAura(23170); }
|