private static void ProcessUltimate(Obj_AI_Hero target) { if (!Collision.DetectCollision(target) && Spells[SpellSlot.R].Damage(target) > target.Health && UnleashedPowerCheck(target) && !target.BuffCheck()) { if ( !(Spells[SpellSlot.Q].Damage(target) > target.Health && Spells[SpellSlot.Q].Instance.Instance.CooldownExpires - Game.Time < 2 && Spells[SpellSlot.Q].Instance.Instance.CooldownExpires - Game.Time >= 0 && target.IsStunned) && (int)(Game.ClockTime * 0x3E8) - Spells[SpellSlot.Q].LastCastAttemptTick > 500 + Game.Ping) { Spells[SpellSlot.R].Instance.CastOnUnit(target); Spells[SpellSlot.R].LastCastAttemptTick = (int)(Game.ClockTime * 0x3E8); } } }
private static void ProcessUltimate(Obj_AI_Hero target) { if (!Collision.DetectCollision(target) && Spells[SpellSlot.R].Damage(target) > target.Health && UnleashedPowerCheck(target) && !target.BuffCheck()) { if ( !(Spells[SpellSlot.Q].Damage(target) > target.Health && Spells[SpellSlot.Q].Instance.Instance.CooldownExpires - Game.Time < 2 && Spells[SpellSlot.Q].Instance.Instance.CooldownExpires - Game.Time >= 0 && target.IsStunned) && (int) (Game.ClockTime * 0x3E8) - Spells[SpellSlot.Q].LastCastAttemptTick > 500 + Game.Ping) { Spells[SpellSlot.R].Instance.CastOnUnit(target); Spells[SpellSlot.R].LastCastAttemptTick = (int) (Game.ClockTime * 0x3E8); } } }