Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[2342] Add Floor reload handling in Trial of the Crusader

  • Loading branch information...
commit 985d7693ec642c155ff879222c527516a8c11569 1 parent 636b240
@Schmoozerd authored
View
18 ...pts/northrend/crusaders_coliseum/trial_of_the_crusader/instance_trial_of_the_crusader.cpp
@@ -192,8 +192,22 @@ void instance_trial_of_the_crusader::OnCreatureCreate(Creature* pCreature)
void instance_trial_of_the_crusader::OnObjectCreate(GameObject* pGo)
{
- if (pGo->GetEntry() == GO_COLISEUM_FLOOR)
- m_mGoEntryGuidStore[pGo->GetEntry()] = pGo->GetObjectGuid();
+ switch (pGo->GetEntry())
+ {
+ case GO_COLISEUM_FLOOR:
+ if (m_auiEncounter[TYPE_TWIN_VALKYR] == DONE)
+ {
+ pGo->SetDisplayId(DISPLAYID_DESTROYED_FLOOR);
+ pGo->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_UNK_10 | GO_FLAG_NODESPAWN);
+ pGo->SetGoState(GO_STATE_ACTIVE);
+ }
+ break;
+ case GO_MAIN_GATE:
+ break;
+ default:
+ return;
+ }
+ m_mGoEntryGuidStore[pGo->GetEntry()] = pGo->GetObjectGuid();
}
void instance_trial_of_the_crusader::OnPlayerEnter(Player* pPlayer)
View
2  sd2_revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_NR_H__
#define __SD2_REVISION_NR_H__
- #define SD2_REVISION_NR "2341"
+ #define SD2_REVISION_NR "2342"
#endif // __SD2_REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.