Example #1
0
        public override void Execute(Obj_AI_Hero target)
        {
            if (_brandQWE.Any(spell => spell.Instance.State == SpellState.Ready || spell.Instance.CooldownExpires > Game.Time && spell.Instance.CooldownExpires - Game.Time < spell.Instance.Cooldown / 2f) || _w.Instance.Cooldown - (_w.Instance.CooldownExpires - Game.Time) < 1)
            {
                if ((!target.HasBuff("brandablaze") || target.GetBuff("brandablaze").EndTime - Game.Time < Delay) && !Provider.IsMarked(target) && !(ObjectManager.Player.GetSpellDamage(target, Instance.Slot) + ObjectManager.Player.GetAutoAttackDamage(target, true) > target.Health))
                    return;
            }

            //if ((((!target.HasBuff("brandablaze") || target.GetBuff("brandablaze").EndTime - Game.Time < Delay) && !Provider.IsMarked(target)) &&
            //    (!(ObjectManager.Player.GetSpellDamage(target, Instance.Slot) + ObjectManager.Player.GetAutoAttackDamage(target, true) > target.Health))) &&
            //    _brandQWE.Any(spell => spell.Instance.State == SpellState.Ready || spell.Instance.CooldownExpires > Game.Time && spell.Instance.CooldownExpires - Game.Time < spell.Instance.Cooldown / 2f)) return;
            //// wenn any skill ready || half cooldown

            Cast(target);
        }
Example #2
0
        public static float EDamage(Obj_AI_Hero unit)
        {
            float damage = 0;
            if (unit == null) return 0;
            var data = Player.Buffs.FirstOrDefault(b => b.DisplayName == "TristanaECharge");
                var i = data != null ? data.Count : 0;
            
            var buff = unit.GetBuff("TristanaECharge").Count;
            if (!unit.HasBuff("tristanaechargesound"))
                return 0;
            if (i != 0)
            {
                damage += (float) (Tristana.E.GetDamage(unit)*((0.3*(i + 1)))
                                   + (Player.TotalMagicalDamage*0.5));
                damage += BonusDamagePerStack(unit)*(i + 1);
            }

            return damage;
        }
Example #3
0
 private static bool CanR(Obj_AI_Hero target)
 {
     var buff = target.GetBuff("blindmonkrkick");
     return buff != null && buff.EndTime - Game.Time < 0.3 * (buff.EndTime - buff.StartTime);
 }
Example #4
0
 public override bool ShouldBeDead(Obj_AI_Hero target, float additionalSpellDamage = 0f)
 {
     var passive = target.GetBuff("brandablaze");
     return base.ShouldBeDead(target, passive != null ? GetRemainingPassiveDamage(target, passive) : 0f);
 }
Example #5
0
 public static float GetRemainingDamage(Obj_AI_Hero target)
 {
     var ignitebuff = target.GetBuff("summonerdot");
     if (ignitebuff == null) return 0;
     return (float)ObjectManager.Player.CalcDamage(target, Damage.DamageType.True, ((int)(ignitebuff.EndTime - Game.Time) + 1) * GetDamage() / 5);
 }
Example #6
0
 private static bool CanR(Obj_AI_Hero target)
 {
     var buff = target.GetBuff("BlindMonkDragonsRage");
     return buff != null && buff.EndTime - Game.Time < 0.3 * (buff.EndTime - buff.StartTime);
 }