Ejemplo n.º 1
0
        public void PrepareAttack(Target target)
        {
            if (World.Game.Editor || !World.Map.Type.AllowWeapons)
            {
                return;
            }

            if (!CanAttack)
            {
                return;
            }

            Angle = (Position - target.Position).FlatAngle;

            Weapon.OnAttack(target);
        }