Esempio n. 1
0
            public override void OnUnitDeath(Unit unit)
            {
                if (unit.GetEntry() == GDCreatureIds.RuinDweller)
                {
                    DwellerGUIDs.Remove(unit.GetGUID());

                    if (DwellerGUIDs.Empty())
                    {
                        unit.SummonCreature(GDCreatureIds.EckTheFerocious, GDInstanceMisc.EckSpawnPoint, TempSummonType.CorpseTimedDespawn, 300 * Time.InMilliseconds);
                    }
                }
            }
Esempio n. 2
0
            public override void OnCreatureCreate(Creature creature)
            {
                switch (creature.GetEntry())
                {
                case GDCreatureIds.RuinDweller:
                    if (creature.IsAlive())
                    {
                        DwellerGUIDs.Add(creature.GetGUID());
                    }
                    break;

                default:
                    break;
                }

                base.OnCreatureCreate(creature);
            }