/// <summary> /// Registers the spell. /// </summary> /// <param name="champName">Name of the champ.</param> /// <param name="spell">The spell.</param> private static void RegisterSpell(string champName, InterruptableSpell spell) { if (!InterruptableSpells.ContainsKey(champName)) { InterruptableSpells.Add(champName, new List <InterruptableSpell>()); } InterruptableSpells[champName].Add(spell); }
/// <summary> /// Registers the spell. /// </summary> /// <param name="champName">Name of the champ.</param> /// <param name="spell">The spell.</param> private static void RegisterSpell(string champName, InterruptableSpell spell) { if (HeroManager.Enemies.All(h => h.ChampionName != champName)) { return; } if (!InterruptableSpells.ContainsKey(champName)) { InterruptableSpells.Add(champName, new List <InterruptableSpell>()); } InterruptableSpells[champName].Add(spell); }