Fix ringing the AQ gates gong.
Closes https://github.com/vmangos/core/issues/2574
This commit is contained in:
@@ -1251,7 +1251,6 @@ enum
|
||||
GO_AQ_BARRIER = 176146,
|
||||
GO_AQ_GATE_ROOTS = 176147,
|
||||
GO_AQ_GATE_RUNES = 176148,
|
||||
GO_AQ_GHOST_GATE = 180322,
|
||||
|
||||
AQ_OPEN_IF_CLOSED = 0,
|
||||
AQ_PREPARE_CLOSE = 1,
|
||||
@@ -2161,8 +2160,6 @@ struct scarab_gongAI: public GameObjectAI
|
||||
GameObject* go_aq_barrier;
|
||||
GameObject* go_aq_gate_runes;
|
||||
GameObject* go_aq_gate_roots;
|
||||
// Invisible AQ barrier
|
||||
GameObject* go_aq_ghost_gate;
|
||||
|
||||
void UpdateAI(uint32 const uiDiff) override
|
||||
{
|
||||
@@ -2239,9 +2236,8 @@ struct scarab_gongAI: public GameObjectAI
|
||||
go_aq_barrier = GetClosestGameObjectWithEntry(me, GO_AQ_BARRIER, 150);
|
||||
go_aq_gate_runes = GetClosestGameObjectWithEntry(me, GO_AQ_GATE_RUNES, 150);
|
||||
go_aq_gate_roots = GetClosestGameObjectWithEntry(me, GO_AQ_GATE_ROOTS, 150);
|
||||
go_aq_ghost_gate = GetClosestGameObjectWithEntry(me, GO_AQ_GHOST_GATE, 150);
|
||||
|
||||
if (!go_aq_barrier || !go_aq_gate_runes || !go_aq_gate_roots || !go_aq_ghost_gate)
|
||||
if (!go_aq_barrier || !go_aq_gate_runes || !go_aq_gate_roots)
|
||||
return;
|
||||
|
||||
// Abort "Pawn on the Eternal Board" scene if currently active.
|
||||
@@ -2273,7 +2269,6 @@ struct scarab_gongAI: public GameObjectAI
|
||||
|
||||
void ResetAQGates()
|
||||
{
|
||||
go_aq_ghost_gate->SetGoState(GO_STATE_READY);
|
||||
go_aq_barrier->SetGoState(GO_STATE_READY);
|
||||
go_aq_gate_runes->SetGoState(GO_STATE_READY);
|
||||
go_aq_gate_roots->ResetDoorOrButton();
|
||||
|
||||
Reference in New Issue
Block a user