public void AddSpell(CommonSpell spell) { char slot = char.MinValue; switch (spell.Slot) { case (SpellSlot.Q): slot = 'q'; break; case (SpellSlot.W): slot = 'w'; break; case (SpellSlot.E): slot = 'e'; break; case (SpellSlot.R): slot = 'r'; break; } spell.UseOnComboMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tocombo", slot)); spell.UseOnHarasMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}toharas", slot)); spell.UseOnLaneClearMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tolaneclear", slot)); spellList.Add(spell); }
private bool CanUseAA() { bool canHit = true; if (KoreanUtils.GetParam(champion.MainMenu, "supportmode") != null) { if (KoreanUtils.GetParamBool(champion.MainMenu, "supportmode") && champion.Player.CountAlliesInRange(1500f) > 1) { canHit = false; } } return(canHit); }