Пример #1
0
        private void AddTankBuster(Action spell)
        {
            if (spell == null)
            {
                return;
            }

            if (GuiTankBustersList.Any(r => r.SpellId == spell.Id))
            {
                return;
            }

            Logger.KefkaLog(@"Adding {0} to the Tankbuster List.", spell.Name);

            var newSpell = new TankBuster
            {
                SpellName      = spell.Name,
                SpellId        = spell.Id,
                Convalescence  = false,
                Awareness      = false,
                DivineVeil     = false,
                Sheltron       = false,
                HallowedGround = false,
                Sentinel       = false,
                Foresight      = false,
                Bulwark        = false,
                Rampart        = false,
                ThrillofBattle = false,
                Holmgang       = false,
                Vengeance      = false,
                Equilibrium    = false,
                RawIntuition   = false,
                Anticipation   = false,
                ShadowWall     = false,
                DarkMind       = false,
                BlackestNight  = false,
                LivingDead     = false,
                Palisade       = false
            };

            GuiTankBustersList.Add(newSpell);
            Save();
        }