コード例 #1
0
ファイル: Misc.cs プロジェクト: wade1990/PortAIO
        public static int AoE(this Spell spell, Vector3 vector3)
        {
            var rect = new RectanglePoly(Config.Player.ServerPosition, Config.Player.ServerPosition.Extend(vector3, spell.Range), spell.Width);

            return(GameObjects.AllyHeroes.Count(a => a.IsValidTarget() && rect.IsInside(spell.GetPrediction(a).CastPosition)));
        }