private static bool ShouldActivateEvadeSpell(Spell spell)
{
if (AdEvade.LastPosInfo == null)
return false;
if (ConfigValue.DodgeSkillShots.GetBool())
{
if (AdEvade.LastPosInfo.UndodgeableSpells.Contains(spell.SpellId)
&& GameData.HeroInfo.ServerPos2D.InSkillShot(spell, GameData.HeroInfo.BoundingRadius))
{
return true;
}
}
else
{
if (GameData.HeroInfo.ServerPos2D.InSkillShot(spell, GameData.HeroInfo.BoundingRadius))
{
return true;
}
}
/*float activationTime = Evade.Menu.SubMenu("MiscSettings").SubMenu("EvadeSpellMisc").Item("EvadeSpellActivationTime")
.Cast<Slider>().CurrentValue + ObjectCache.gamePing;
if (spell.spellHitTime != float.MinValue && activationTime > spell.spellHitTime - spell.evadeTime)
{
return true;
}*/
return false;
}