mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-13 23:33:47 +00:00
18 lines
536 B
C++
18 lines
536 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;
|
|
} |