private void AddInterrupt(Action spell) { if (spell == null) { return; } Logger.KefkaLog(@"Adding {0} to the Interrupt List.", spell.Name); var newSpell = new SpellInfo { CanStun = true, CanSilence = false, SpellId = spell.Id, SpellName = spell.Name }; GuiInterruptsList.Add(newSpell); Save(); }
private void RemoveInterrupt(SpellInfo spell) { if (spell == null) { return; } if (!GuiInterruptsList.Contains(spell)) { return; } Logger.KefkaLog(@"Removing {0} from the Interrupt List.", spell.SpellName); GuiInterruptsList.Remove(spell); Save(); }