internal static float GetComboDamage(Obj_AI_Hero target) { if (target == null || target.IsDead || !target.IsValidTarget()) { return(0); } if (target.IsUnKillable()) { return(0); } var damage = 0d; if (MyLogic.IgniteSlot != SpellSlot.Unknown && MyLogic.Ignite.Ready) { damage += ObjectManager.GetLocalPlayer().GetIgniteDamage(target); } if (MyLogic.Q.Ready) { damage += ObjectManager.GetLocalPlayer().GetSpellDamage(target, SpellSlot.Q) + ObjectManager.GetLocalPlayer().GetAutoAttackDamage(target); } if (MyLogic.W.Ready) { damage += ObjectManager.GetLocalPlayer().GetSpellDamage(target, SpellSlot.W); } if (MyLogic.E.Ready) { damage += ObjectManager.GetLocalPlayer().GetAutoAttackDamage(target) + ObjectManager.GetLocalPlayer().GetAutoAttackDamage(target) * 1.6f; } if (MyLogic.R.Ready) { if (target.Type == GameObjectType.obj_AI_Hero) { damage += GetPassiveDamage(target, 4) + ObjectManager.GetLocalPlayer().GetAutoAttackDamage(target) * 2.5; } } if (MyPassiveManager.PassiveCount(target) > 0) { damage += GetPassiveDamage(target, 1) + ObjectManager.GetLocalPlayer().GetAutoAttackDamage(target); } if (ObjectManager.GetLocalPlayer().HasBuff("SummonerExhaust")) { damage = damage * 0.6f; } if (target.UnitSkinName == "Moredkaiser") { damage -= target.Mana; } if (target.HasBuff("GarenW")) { damage = damage * 0.7f; } if (target.HasBuff("ferocioushowl")) { damage = damage * 0.7f; } if (target.HasBuff("BlitzcrankManaBarrierCD") && target.HasBuff("ManaBarrier")) { damage -= target.Mana / 2f; } return((float)damage); }
private static bool CastQ(Obj_AI_Hero target) { if (!Q.IsReady() || !target.IsValidTarget(Q.Range)) { return(false); } if (Q.IsReady()) { if (MyPassiveManager.PassiveCount(target) > 0) { var pos = MyPassiveManager.CastQPosition(target); if (MiscMenu["FlowersFiora.MiscMenu.UnderTurret"].Enabled) { if (MiscMenu["FlowersFiora.MiscMenu.ComboUnderTurret"].Enabled || Orbwalker.Mode != OrbwalkingMode.Combo) { if (pos.PointUnderEnemyTurret()) { return(false); } } } if (MiscMenu["FlowersFiora.MiscMenu.CheckSafe"].Enabled && !pos.IsSafePosition()) { return(false); } if (Me.Distance(pos) > Q.Range) { return(false); } if (Me.Distance(pos) < 50) { return(false); } return(Q.Cast(pos)); } else { var pos = target.ServerPosition; if (MiscMenu["FlowersFiora.MiscMenu.UnderTurret"].Enabled) { if (MiscMenu["FlowersFiora.MiscMenu.ComboUnderTurret"].Enabled || Orbwalker.Mode != OrbwalkingMode.Combo) { if (pos.PointUnderEnemyTurret()) { return(false); } } } if (MiscMenu["FlowersFiora.MiscMenu.CheckSafe"].Enabled && !pos.IsSafePosition()) { return(false); } if (target.IsValidTarget(Q.Range) && Me.Distance(target) >= 80) { return(Q.Cast(target.ServerPosition)); } } } return(false); }