mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
22 lines
553 B
C++
22 lines
553 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;
|
|
} |