本文整理汇总了C#中Spell.Active.IsReady方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.Active.IsReady方法的具体用法?C# Spell.Active.IsReady怎么用?C# Spell.Active.IsReady使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Spell.Active
的用法示例。
在下文中一共展示了Spell.Active.IsReady方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Game_OnUpdate
private static void Game_OnUpdate(EventArgs args)
{
if (MobsToSmite["killsmite"].Cast<CheckBox>().CurrentValue)
{
var KillEnemy =
EntityManager.Heroes.Enemies.FirstOrDefault(hero => hero.IsValidTarget(500f)
&& SmiteChampDamage() >= hero.Health);
if (KillEnemy != null)
Player.CastSpell(Smite.Slot, KillEnemy);
}
if (SmiteGHMenu["active"].Cast<CheckBox>().CurrentValue || SmiteGHMenu["activekey"].Cast<KeyBind>().CurrentValue)
{
double SpellDamage = 0;
Monster = GetNearest(ObjectManager.Player.ServerPosition);
if (Monster != null && MobsToSmite[Monster.BaseSkinName].Cast<CheckBox>().CurrentValue)
{
if (SupportedChampions.Contains(ObjectManager.Player.ChampionName))
{
if (SmiteGHMenu["disable"].Cast<CheckBox>().CurrentValue)
{
switch (ObjectManager.Player.ChampionName)
{
#region Diana
case "Diana":
{
Spell.Skillshot Q = new Spell.Skillshot(SpellSlot.Q, (uint)895, SkillShotType.Circular);
Spell.Targeted R = new Spell.Targeted(SpellSlot.R, (uint)825);
//Smite and Spell ==> OKAY
if (Smite.IsReady() && Q.IsReady() && Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Q.Range
&& Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Smite.Range)
{
SpellDamage = GetDamages.DianaQ(Q.Level) + GetDamages.DianaR(R.Level);
TotalDamage = SpellDamage + GetSmiteDamage();
if (Monster.Health <= TotalDamage)
{
Q.Cast(Monster.ServerPosition);
//Smite.Cast(Monster);
}
}
else if (Smite.IsReady() && R.IsReady() && Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < R.Range
&& Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Smite.Range && GetDamages.HasBuffs(Monster, "dianamoonlight"))
{
SpellDamage = GetDamages.DianaR(R.Level);
TotalDamage = SpellDamage + GetSmiteDamage();
if (Monster.Health <= TotalDamage)
{
R.Cast(Monster);
//Smite.Cast(Monster);
}
}
//If Spell is busy, Go Smite only! ^_^
else if (Smite.IsReady() && Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Smite.Range)
{
if (Monster.Health <= GetSmiteDamage())
{
Smite.Cast(Monster);
}
TotalDamage = 0;
}
break;
}
#endregion
#region Evelynn
case "Evelynn":
{
Spell.Targeted E = new Spell.Targeted(SpellSlot.E, (uint)(225f + 2 * 65f));
//Smite and Spell ==> OKAY
if (Smite.IsReady() && E.IsReady() && Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < E.Range
&& Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Smite.Range)
{
SpellDamage = GetDamages.Evelynn(E.Level);
TotalDamage = SpellDamage + GetSmiteDamage();
if (Monster.Health <= TotalDamage)
{
E.Cast(Monster);
//Smite.Cast(Monster);
}
}
//If Spell is busy, Go Smite only! ^_^
else if (Smite.IsReady() && Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Smite.Range)
{
if (Monster.Health <= GetSmiteDamage())
{
Smite.Cast(Monster);
}
TotalDamage = 0;
}
break;
}
#endregion
#region Irelia
case "Irelia":
{
Spell.Targeted Q = new Spell.Targeted(SpellSlot.Q, (uint)650f + 20);
//Smite and Spell ==> OKAY
if (Smite.IsReady() && Q.IsReady() && Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Q.Range
&& Vector3.Distance(ObjectManager.Player.ServerPosition, Monster.ServerPosition) < Smite.Range)
{
SpellDamage = GetDamages.Irelia(Q.Level);
//.........这里部分代码省略.........
示例2: Init
//.........这里部分代码省略.........
_humanizerMenu.AddSeparator(10);
_humanizerMenu.AddGroupLabel("R Settings");
_humanizerMenu.Add("min.r", new Slider("Min R Delay", 4, 0, 50));
_humanizerMenu.Add("max.r", new Slider("Max R Delay", 4, 0, 50));
_humanizerMenu.AddSeparator(10);
#endregion
}
catch (Exception e)
{
Console.WriteLine(e);
Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
}
#region UtilityInit
DamageIndicator.DamageToUnit = GetActualRawComboDamage;
Value.Init();
Value.MenuList.Add(_humanizerMenu);
Drawing.OnDraw += DrawRanges;
#region MenuValueChange
_humanizerMenu["min.q"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["min.q"].Cast<Slider>().CurrentValue > _humanizerMenu["max.q"].Cast<Slider>().CurrentValue)
_humanizerMenu["min.q"].Cast<Slider>().CurrentValue = _humanizerMenu["max.q"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["max.q"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["max.q"].Cast<Slider>().CurrentValue < _humanizerMenu["min.q"].Cast<Slider>().CurrentValue)
_humanizerMenu["max.q"].Cast<Slider>().CurrentValue = _humanizerMenu["min.q"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["min.w"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["min.w"].Cast<Slider>().CurrentValue > _humanizerMenu["max.w"].Cast<Slider>().CurrentValue)
_humanizerMenu["min.w"].Cast<Slider>().CurrentValue = _humanizerMenu["max.w"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["max.w"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["max.w"].Cast<Slider>().CurrentValue < _humanizerMenu["min.w"].Cast<Slider>().CurrentValue)
_humanizerMenu["max.w"].Cast<Slider>().CurrentValue = _humanizerMenu["min.w"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["min.e"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["min.e"].Cast<Slider>().CurrentValue > _humanizerMenu["max.e"].Cast<Slider>().CurrentValue)
_humanizerMenu["min.e"].Cast<Slider>().CurrentValue = _humanizerMenu["max.e"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["max.e"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["max.e"].Cast<Slider>().CurrentValue < _humanizerMenu["min.e"].Cast<Slider>().CurrentValue)
_humanizerMenu["max.e"].Cast<Slider>().CurrentValue = _humanizerMenu["min.e"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["min.r"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["min.r"].Cast<Slider>().CurrentValue > _humanizerMenu["max.r"].Cast<Slider>().CurrentValue)
_humanizerMenu["min.r"].Cast<Slider>().CurrentValue = _humanizerMenu["max.r"].Cast<Slider>().CurrentValue;
};
_humanizerMenu["max.r"].Cast<Slider>().OnValueChange += delegate
{
if (_humanizerMenu["max.r"].Cast<Slider>().CurrentValue < _humanizerMenu["min.r"].Cast<Slider>().CurrentValue)
_humanizerMenu["max.r"].Cast<Slider>().CurrentValue = _humanizerMenu["min.r"].Cast<Slider>().CurrentValue;
};
#endregion
#endregion
}
catch (Exception e)
{
Console.WriteLine(e);
Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>");
}
Game.OnUpdate += delegate
{
try
{
#region AutoW
if (MainMenu._harass["harass.autow"].Cast<CheckBox>().CurrentValue)
{
var e = EntityManager.Heroes.Enemies.Where(ee => !ee.IsDead && ee.IsValid);
foreach (var enemy in e)
{
if (_w.IsInRange(enemy) && _w.IsReady() && !_isUlting)
{
_w.Cast();
}
}
}
#endregion
KillSteal();
}
catch (Exception e)
{
Console.WriteLine(e);
Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> san error ocurred. (Code 5)</font>");
}
//KillSteal();
};
}