public bool CastGhost() { var summoner = SpellsUtil.GetActiveSpell(SpellsUtil.Summoners.Ghost); if (summoner != null && summoner.IsReady() && summoner.Cast()) { return(true); } return(false); }
void InitVariables() { _itemUtil = new ItemUtil(); #region Summoners flash = SpellsUtil.GetSkillshotSpell(SpellsUtil.Summoners.Flash); ignite = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Ignite); exhaust = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Exhaust); smite = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Smite); heal = SpellsUtil.GetActiveSpell(SpellsUtil.Summoners.Heal); barrier = SpellsUtil.GetActiveSpell(SpellsUtil.Summoners.Barrier); ghost = SpellsUtil.GetActiveSpell(SpellsUtil.Summoners.Ghost); cleanse = SpellsUtil.GetActiveSpell(SpellsUtil.Summoners.Cleanse); #endregion #region Offensives hextech = _itemUtil.GetItem(ItemId.Hextech_Gunblade, 700); botrk = _itemUtil.GetItem(ItemId.Blade_of_the_Ruined_King, 550); bilgewater = _itemUtil.GetItem(ItemId.Bilgewater_Cutlass, 550); tiamat = _itemUtil.GetItem(ItemId.Tiamat_Melee_Only, 325); //range = 400 hydra = _itemUtil.GetItem(ItemId.Ravenous_Hydra_Melee_Only, 325); //range = 400 titanic = _itemUtil.GetItem(3053, 75); //range = 150 youmuus = _itemUtil.GetItem(ItemId.Youmuus_Ghostblade); #endregion #region Defensives faceMountain = _itemUtil.GetItem(ItemId.Face_of_the_Mountain, 600); mikael = _itemUtil.GetItem(ItemId.Mikaels_Crucible, 600); solari = _itemUtil.GetItem(ItemId.Locket_of_the_Iron_Solari, 600); randuin = _itemUtil.GetItem(ItemId.Randuins_Omen, 450);//range = 500 scimitar = _itemUtil.GetItem(ItemId.Mercurial_Scimitar); qss = _itemUtil.GetItem(ItemId.Quicksilver_Sash); seraph = _itemUtil.GetItem(3040); zhonya = _itemUtil.GetItem(ItemId.Zhonyas_Hourglass); #endregion #region Speed talisma = _itemUtil.GetItem(ItemId.Talisman_of_Ascension); righteousGlory = _itemUtil.GetItem(ItemId.Righteous_Glory, 600); #endregion #region Potions healthPotion = _itemUtil.GetItem(ItemId.Health_Potion); biscuitPotion = _itemUtil.GetItem(2010); corruptingPotion = _itemUtil.GetItem(2033); huntersPotion = _itemUtil.GetItem(2032); refillablePotion = _itemUtil.GetItem(2031); #endregion _itens = new ItemController(); _summoners = new SummonersController(); }