public static PreferEvadeSpell ( ) : bool | ||
Результат | bool |
public static bool PreferEvadeSpell()
{
if (!Situation.ShouldUseEvadeSpell())
return false;
foreach (KeyValuePair<int, Spell> entry in SpellDetector.Spells)
{
Spell spell = entry.Value;
if (!GameData.HeroInfo.ServerPos2D.InSkillShot(spell, GameData.HeroInfo.BoundingRadius))
continue;
if (ActivateEvadeSpell(spell, true))
{
return true;
}
}
return false;
}