Ejemplo n.º 1
0
 void Update(uint32 diff)
 {
     if (TombEventStarterGUID && GhostKillCount < 7)
     {
         if (TombTimer <= diff)
         {
             TombTimer = TIMER_TOMBOFTHESEVEN;
             ++TombEventCounter;
             TombOfSevenEvent();
             // Check Killed bosses
             for (uint8 i = 0; i < 7; ++i)
             {
                 if (Creature* boss = instance->GetCreature(TombBossGUIDs[i]))
                 {
                     if (!boss->isAlive())
                     {
                         GhostKillCount = i+1;
                      }
                 }
             }
         } else TombTimer -= diff;
     }
     if (GhostKillCount >= 7 && TombEventStarterGUID)
         TombOfSevenEnd();
 }
Ejemplo n.º 2
0
 void Update(uint32 diff)
 {
     if (TombEventStarterGUID && GhostKillCount < 7)
     {
         if (TombTimer <= diff)
         {
             TombTimer = TIMER_TOMBOFTHESEVEN;
             ++TombEventCounter;
             TombOfSevenEvent();
         } else TombTimer -= diff;
     }
     if (GhostKillCount >= 7 && TombEventStarterGUID)
         TombOfSevenEnd();
 }