Scripts/Obsidian Sanctum Add support for when encounter is in progress. thnx to kiper

--HG--
branch : trunk
This commit is contained in:
Supabad
2010-12-18 18:07:24 +01:00
parent e75d16b813
commit 8ce0abbbc8

View File

@@ -62,6 +62,15 @@ public:
m_bVesperonKilled = false;
}
bool IsEncounterInProgress() const
{
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
if (m_auiEncounter[i] == IN_PROGRESS)
return true;
return false;
}
void OnCreatureCreate(Creature* creature)
{
switch(creature->GetEntry())