mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(DB/Script/Gundrak) Implement Rhino event when the bridge moves. (#22873)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "InstanceMapScript.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "gundrak.h"
|
||||
#include "GameObjectAI.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
{
|
||||
@@ -211,6 +212,9 @@ public:
|
||||
if (GameObject* go = instance->GetGameObject(_bridgeGUIDs[i]))
|
||||
go->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE);
|
||||
}
|
||||
if (GameObject* collision = instance->GetGameObject(_bridgeGUIDs[4]))
|
||||
if (collision->AI())
|
||||
collision->AI()->SetData(0, 1);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user