mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 16:33:46 +00:00
Run clang-format
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
#include "RaidBwlTriggers.h"
|
||||
|
||||
#include "SharedDefines.h"
|
||||
|
||||
bool BwlSuppressionDeviceTrigger::IsActive() {
|
||||
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) {
|
||||
if (!go)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (go->GetEntry() != 179784 || go->GetDistance(bot) >= 15.0f || go->GetGoState() != GO_STATE_READY) {
|
||||
if (go->GetEntry() != 179784 || go->GetDistance(bot) >= 15.0f || go->GetGoState() != GO_STATE_READY)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user