Exemple #1
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null ||
                !CheckGuardians() ||
                (Menu.Item("Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent))
            {
                return;
            }

            if ((heroInfo.Immobilized(ObjectManager.Player) && Menu.Item("Immobilized").GetValue <bool>()) ||
                damage.GetComboDamage(Target) * 1.15 >= Target.Health && Menu.Item("Killable").GetValue <bool>())
            {
                spell.Spell.Cast();
            }
        }