public FlashUlt(ChoGath choGath) { this.choGath = choGath; flash = FlashSpell.Flash(choGath.Player); Game.OnUpdate += Game_OnUpdate; }
public static FlashStruct Flash(AIHeroClient Player) { FlashStruct flash = new FlashStruct(); flash.Slot = ObjectManager.Player.GetSpellSlot("SummonerFlash"); flash.IsReady = ((flash.Slot != SpellSlot.Unknown) && (Player.Spellbook.CanUseSpell(flash.Slot) == SpellState.Ready)); return(flash); }
public static FlashStruct Flash(Obj_AI_Hero Player) { FlashStruct flash = new FlashStruct(); flash.Slot = ObjectManager.Player.GetSpellSlot("SummonerFlash"); flash.IsReady = ((flash.Slot != SpellSlot.Unknown) && (Player.Spellbook.CanUseSpell(flash.Slot) == SpellState.Ready)); return flash; }