Beispiel #1
0
        public override void DeleteNow()
        {
            WarsongClan.Dispose();
            Silverwing.Dispose();

            for (Int32 i = 0; i < Factions.Length; i++)
            {
                Factions[i] = null;
            }

            base.DeleteNow();
        }
Beispiel #2
0
        /// <summary>
        /// Called when the battle starts (perparation ends now)
        /// </summary>
        protected override void OnStart()
        {
            base.OnStart();

            WarsongClan.RespawnFlag();
            Silverwing.RespawnFlag();

            SpawnAllianceBerserkerBuff();
            SpawnAllianceFoodBuff();
            SpawnAllianceSpeedBuff();

            SpawnHordeBerserkerBuff();
            SpawnHordeFoodBuff();
            SpawnHordeSpeedBuff();

            DropGates();

            // In X minutes, WSG will end. Winner is evaluated.
            if (MaxDuration != 0.0)
            {
                CallDelayed(MaxDuration * 60, FinishFight);
            }
            Characters.SendSystemMessage(DefaultAddonLocalizer.Instance.GetTranslations(AddonMsgKey.WSOnStart));
        }